image

HTML Image

The Image Tag and the Src Attribute

The <img> tag has two required attributes:

 

Note: Also, always specify the width and height of an image.
If width and height are not specified, the page might flicker while the image loads.

Example

<html>
<Head>
<tittle>Image Tag </tittle>
</Head>
<body>
<img src="image.jpg" alt="responsive image" width="200" height="300">
<img src="image (1).jpg" alt="responsive image" width="200" height="300">
</body>
</html>

Output:-

imagename imagename