>
Loading

Image

  • <img> tag is used to embed an image in a web page.
  • The <img> tag has two required attributes: src and alt.  

Syntax:

<img src="......." alt=".........">

Example:

<!DOCTYPE html>
<html>

<head>
    <title>Image Tag</title>
</head>

<body>
    <h1>Image Tag Example
    </h1>
    <img src="cat.jpg" alt="Cat"/> 
    </body>

</html>

Output: