Beginner
HTML5
Day6
In Picture tag, the browser selects the appropriate image based on the viewport width. If none of the source elements match, the img element's src is used as a fallback.
The source Tag
The source element is used within picture, audio, or video elements to specify multiple media resources. It allows browsers to choose the first source they support.
Attributes:
srcset: Specifies a list of image sources.
media: Defines a media query to determine when the source is applicable.
Top comments (1)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.