<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML</title>
<style>
.parent {
position: relative;
background-image: url("https://s3.studytonight.com/tutorials/uploads/pictures/1629284313-101156.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 400px;
width: 500px;
border: 2px solid blue;
}
.child {
position: absolute;
background: rgba(0,0,0); /* fall back color */
background: rgba(0,0,0,0.3); /* transparent text*/
width: 100%;
color: white;
top: 100px;
left: 0;
font-size: 20px;
text-align: center;
}
img {
vertical-align: middle;
}
</style>
</head>
<body>
<div class= "parent">
<div class="child">
<h2> Transparent Text </h2>
<p> The Morning Shows the day </p>
</div>
</div>
</body>
</html>