Images in HTML


  • In HTML images are defined with the <img> tag.
  • THe <img> tag is empty, which means that it contains attributes only and has no closing tag.
  • To display an image on a page, you need to use the src attribute.
  • src stands for "source".
  • The value of the src attribute is the URL of the image you want to display.

For Example
<img src="pulpit.jpg" alt="Pulpit rock" width="304" height="228" />