Use <figure>,<figcaption> With CSS
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body{
background-color: rgb(196, 152, 72);
}
.agp{
width: 100%;
height: 250px;
}
.fcss{
border: 3px solid red;
border-radius: 5px;
padding: 5px;
margin: 2px;
width: 50%;
}
.fs{
text-align: center;
}
</style>
<base href="media/">
<title>fieldset tag</title>
</head>
<body>
<figure class="fcss">
<img src="ag.jpg" alt="nataral" class="agp">
<figcaption class="fs">Very Beautefull Photo in the Word</figcaption>
</figure>
</body>
</html>
Comments
Post a Comment