Re: Linked vs Imported style sheets?

Steve Mulder wrote:
> I'm delving into the world of style sheets and poring over the spec, and I
> confess that I don't get the distinction between linking to an external
> style sheet and importing a style sheet. Can anyone help?

To link to an external style sheet is to say (in the HTML source)

<LINK REL=STYLESHEET TYPE="text/css" TITLE="Moj"
      HREF="http://hej.hopp.se/style/moj.css">

To import a style sheet is to say (in the CSS source)

@import url(http://hej.hopp.se/style/tjopp.css")

Imported style sheets should be automatically applied to the document
(merged with the rest of the style sheet they are in) but linked style
sheets can represent alternative style sheets that the reader can
select. 

Additional information is available at 
http://www.w3.org/pub/WWW/TR/WD-css1.html

-- 
Carl Johan Berglund <f92-cbe@nada.kth.se>
http://www.student.nada.kth.se/~f92-cbe/

Received on Tuesday, 15 October 1996 04:04:39 UTC