< All the HTML Tags >

<img></img>

Video Coming Soon...

  • img

    Tag Type

    inline

    Tag Category

    media

    Defines an image

    Viewed

    1

    Examples

    1

Definition:

The HTML <img> tag is used to embed images in a webpage, providing a way to include visual content.

It is a self-closing tag and requires attributes like src (the image URL) and alt (alternative text for accessibility). Proper use of the <img> tag enhances user experience and improves SEO by providing context for images.

Using the `<img>` tag effectively is vital for creating visually appealing and accessible web content.

Attributes:

alt, src, srcset, sizes, crossorigin, usemap, ismap, width, height, decoding, loading, referrerpolicy, longdesc

Accessibility:

Coming Soon…

Default img Example:

Using the <img> tag to insert an image.
<img src="image.jpg" alt="Description">

Default img Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…