Bring in Images

Introduction to Images on websites

Images are a common element of web design, and they serve several different purposes on websites.

Some of the main uses of images on websites include:

  1. Visual appeal

  2. Branding

  3. Illustration

  4. Navigation

The basic syntax of the img tag

To include an image in an HTML page, you can use the <img> element. The <img> element is a self-closing tag, which means that it doesn't have a closing tag.

Attributes:

  • src

  • alt

  • height

  • width