HTML media attribute (original) (raw)

Last Updated : 12 Jul, 2025

The **HTML media attribute is employed to specify the media or device the coupled document is optimized for. This attribute specifies that the target URL is designed for special devices like iPhones, speech, or print media.

syntax

Element Description
Represents a hyperlink, linking to another resource.
Defines a clickable area inside an image map.
Specifies the relationship between a document and an external resource.
Specifies multiple media resources for media elements like and