HTML picture tag

HTML picture tag is used to give flexibility to the developer to define different images for different screen sizes. The picture tag uses a source tag to give screen sizes with image specification to show.

We can use multiple images to show for different screen sizes.


Syntax

Output

nature image

Picture element is no longer be developed as a separate specification. See W3C Specification for this tag.

See W3C Development for this tag.