HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML media Attribute

HTML media Attribute

 

 

The media attribute is used to specify what media/device the linked document is optimized for. It is used to specify that the target URL is designed for special devices, speech, or print media. It may have several values.

 

Used With:-

 

Elements Attribute
a media
area media
link media
source media
style media

 

Syntax:-

 

Its syntax is:- < element media="value" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML