Bring in Images

Bring in Images

Table of Content

  • Introduction to Images in websites.

  • Uses of images on the website.

  • The basic syntax of the img tag.

  • Attributes

Introduction to Images in 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 in a self-closing tag, which means that it doesn't have a closing tag.

Attributes:

  • src

  • alt

  • height

  • width