How To Add An Image In HTML?

Use the `` tag

Set the image source with the `src` attribute

Add alternative text with the `alt` attribute

Example: `Description of image`

Use a relative path for local images

Use an absolute URL for online images

Optionally set width and height with `width` and `height` attributes

Place the `` tag inside the `` section

Suggested for You

Trending Today