Horje

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

orientation Specifies the orientation of the target display/paper.
Possible values: "portrait" or "landscape"
Example: media="all and (orientation: landscape)"
index.html
Example: HTML
<source media="all and (orientation: landscape)" srcset="https://horje.com/avatar.png">

Output should be:

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




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