HTML and CSS Reference
In-Depth Information
sion is designed for a different medium. 8 It can also be used with the type attribute to
indicate the linked document is a version of the page in a different file format, such as a
PDF version of the page. For example, a link that referred to a printable PDF version of
the document that was also in French might look like this:
<link rel="alternate" href="alt-fr.pdf" type="application/
pdf"?hreflang="fr" media="print"
title="French version PDF for printing" />
The HTML specification lists more than a dozen predefined types for the rel attrib-
ute ( Table 2-5 ).
__________
8 The media attribute has a number of valid values such as screen, tty, tv, projec-
tion, handheld, print, braille, aural, and all , which are aimed respectively
at computer screens, terminals, televisions, projectors, handheld devices, printed pages, Braille
tactile feedback devices, speech synthesizers, and all of the above. Of these, you are most likely
to use screen and print and possibly handheld. Opera uses projection when in full-screen mode, so
if you have specified a screen type for your main style sheet, you may want to consider including
projection: <link media="screen, projection" ... /> .
 
Search WWH ::




Custom Search