Image Example
by REPLY2SAGAR
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Element Example</title>
<style>
img {
width: 50%; /* Sets the width of the image to 50% of its containing element */
border: 5px solid #555; /* Adds a solid border around the image */
}
</style>
</head>
<body>
<h1>HTML Image Example</h1>
<p>This is an example of how to use the <code><img></code> element in HTML:</p>
<img src="https://via.placeholder.com/600" alt="Placeholder Image">
<p>The above image is a placeholder used to demonstrate the <code><img></code> tag.</p>
</body>
</html>