W3C home > Mailing lists > Public > www-style@w3.org > October 1996

Re: Linked vs Imported style sheets?

From: Carl Johan Berglund <f92-cbe@nada.kth.se>
Date: Tue, 15 Oct 1996 10:04:42 +0100
Message-ID: <326353AA.5E2A@nada.kth.se>
To: Steve Mulder <smulder@iquest.net>
CC: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:45 GMT