HTML - Images

  • HTML <img> tag is used to display  images in the web page.
  • The images are just linked, not inserted into the web page. The <img> creates a holding space for the image.
  • The <img> tag is an empty tag that doesn't have a closing tag. It contains only attributes.
  • The required attributes of the <img> tag are
    • src - Specifies the path of the image
    • alt - Specifies alternate text for the image
      <img src="url" alt="alternate-text">