< All the HTML Tags >

<picture></picture>

Video Coming Soon...

  • picture

    Tag Type

    block

    Tag Category

    media

    Allows specification of multiple image sources for responsive designs.

    Viewed

    1

    Examples

    1

Definition:

The HTML <picture> tag is used to provide multiple image sources for responsive design, allowing the browser to select the most appropriate image based on device characteristics.

It can contain one or more <source> elements, each specifying different image formats or conditions, enhancing performance and user experience on various devices.

Using the `<picture>` tag effectively optimizes images for different screen sizes and resolutions.

Attributes:

Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default picture Example:

Responsive images using picture element
<picture><source media="(min-width: 650px)" srcset="img_large.jpg"><img src="img_small.jpg" alt="Image description"></picture>

Default picture Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…