I am trying to understand the differences between and uses of
persistent, default and alternate styles. I have read
http://www.w3.org/TR/REC-html40/present/styles.html section 14.3.2 on
specifying external style sheets in link using combinations of rel and
using or not using the title attribute.
I think I sort of understand rel="alternate stylesheet". It seems to be
able to act something like the media="print" or media="handheld" or
media="projection" Except it does not act automatically to produce the
layout as defined. Instead, the user agent has to support it, and the
user has to select the alternate style sheet. I can't find access in
Safari. In Firefox, Page Style. In Opera, View, Style, and then a list
of the Title given to each of the style sheets in the link to them.
However the reference above says to name the alternate style sheet using
the title attribute. Whereas at
http://www.w3.org/TR/2002/CR-css3-me...ries-20020708/ there are
examples of links to them without title attributes. So is it required
or not? I would think it is required. I think this is supported by the
use of title to indicate the difference between persistent and preferred
style sheets.
Moving to persistent vs preferred style sheets, most style sheets seem
to be persistent. That is, the link has href="mystyle.css"
rel="stylesheet" type="text/css" However most do not include the
title="whatever", so they are not preferred style sheets. So am I right
in thinking a persistent style sheet is used when you expect that other
style sheets (or styles) may also be used by the HTML document. And a
preferred style sheet would be appropriate where you think it may be
replaced entirely by some other style sheet?
--
http://www.ericlindsay.com