Horje

How to add device-height Value in HTML <source> media Attribute

device-height Specifies the height of the target display/paper.
"min-" and "max-" prefixes can be used.
Example: media="screen and (device-height:500px)"
index.html
Example: PHP
<source media="screen and (device-height:500px)" srcset="https://horje.com/avatar.png">

Output should be:

How to add device-height Value in HTML <source> media Attribute




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