Horje

How to add resolution Value in HTML <source> media Attribute

resolution Specifies the pixel density (dpi or dpcm) of the target display/paper.
"min-" and "max-" prefixes can be used.
Example: media="print and (resolution:300dpi)"
index.html
Example: HTML
<source media="print and (resolution:300dpi)" srcset="https://horje.com/avatar.png">

Output should be:

How to add resolution Value in HTML <source> media Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin