Skip to main content

Command Palette

Search for a command to run...

Bring in Images

Published
1 min read

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

More from this blog

Himangshu's Notes

34 posts

Full Stack Developer | MongoDB, Express, React, Node.js