Name
MEDIA — NN n/a IE n/a HTML 4
Synopsis
MEDIA=”descriptorList"Optional
Sets the intended output device for the content of the
DIV element. The MEDIA
attribute looks forward to the day when browsers are able to tailor
content to specific kinds of devices such as pocket computers,
text-to-speech digitizers, or fuzzy television sets. The HTML 4.0
specification defines a number of constant values for anticipated
devices, but the list is open-ended, allowing future browsers to
tailor output to yet other kinds of media and devices.
Example
<DIV MEDIA="screen, tv, handheld">...</DIV>
Value
Case-sensitive constant values. Multiple values can be grouped
together in a comma-delimited list within a quoted string. Values
defined in HTML 4.0 are screen |
tty | tv |
projection | handheld |
print | braille |
aural | all.
Default
screen
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access