Linked Versus Imported Style Sheets
At first glance, it may appear that linked and imported style sheets
are equivalent, using different syntax for the same functionality.
This is true if you use just one <link> tag
in your document. However, special rules come into play if you
include two or more <link> tags within a
single document.
With one <link> tag, the browser loads the
styles in the referenced style sheet and formats the document
accordingly, with any document-level and inline styles overriding the
external definitions. With two or more
<link> tags, the browser presents the user
with a list of all the linked style sheets. The user can then select
one of the sheets, which is used to format the document. The other
linked style sheets are ignored.
On the other hand, the styles-conscious browser merges, as opposed to
separate, multiple imported style sheets to form a single set of
style rules for your document. The last imported style sheet takes
precedence if there are duplicate definitions among the style sheets.
Imported styles also override linked external styles, just as
document-level and inline styles override external style
definitions.
|