HTML
HTML
<img src="url">
The src is an attribute to which you need to pass the complete path of the image.
And there are many purposes for using it. This name will be shown to the user if the image is not able to
load properly (because of poor internet connection). It is also used by the search engine to identify the
image.
width and height – With these attributes, you can provide the dimensions of the image to display.
1 <imgsrc="example.jpg"alt="instance"width="500"height="333">
stance"width="500"height="333">
PS: The images displayed above in this post are the example of using the img HTML tag.
<html>
<head>
<link rel="stylesheet" type="text/css" href="/styles.css">
<title> Example is Body Section Elements </title>
</head>
<body>
<!-- Body Part -->
<p>This is Body Section </p>
<a href="html-basic.php">goto HTML Index Page </a>
</body>
</html>
Result:
This is Body Section
Program no 2 Headlines
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Result:
Program no 3 Table
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Program no 4
<!DOCTYPE html>
<title>My Example</title>
<style>
img {
</style>
<hr>
Result: