The
srcset
attribute specifies the URL of the image to use in different situations.
This attribute is required when
<source>
is used in
<picture>
.
The numbers in the table specify the first browser version that fully supports the attribute.
<source srcset="
URL
">
Value | Description |
---|---|
URL |
Specifies the URL of the image. Possible values:
|
Example:
HTML
<source media="screen and (min-color-index:256)" srcset="https://horje.com/avatar.png">
Type
: |
html |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Tag |
Uploaded by
: |
Admin |