A simple rule of thumb; Use <link> to attach stylesheets to a document. Use @import to attach stylesheets to stylesheets.
<link> also has the advantage of defining relationships between documents, eg. preferred and alternate stylesheets, see: http://www.w3.org/TR/REC-html40/present/styles.html#h-14.3.1 Kevin Warrington On Tue, Jan 13, 2009 at 10:15 AM, Thierry Koblentz <n...@tjkdesign.com> wrote: >> -----Original Message----- >> From: css-d-boun...@lists.css-discuss.org [mailto:css-d-boun...@lists.css- >> discuss.org] On Behalf Of dsm...@flvs.net >> Sent: Monday, January 12, 2009 9:05 AM >> To: css-d@lists.css-discuss.org >> Subject: [css-d] best practices >> >> Hi >> I teach Web Design and really focus on standards and best practices. When >> using external style sheets I have always had students link the style >> sheet. Recently some students have begun using the @import >> url("main.css");I understand how to use both. I am just wondering what the >> best practice is and why. . All comments and suggestions are welcome and >> helpful. >> Thanks! > > > According to Y!DN [1], it is better to choose <link> over @import because in > IE @import behaves the same as using <link> at the bottom of the page. > > [1] http://developer.yahoo.com/performance/rules.html#csslink > > > -- > Regards, > Thierry | http://www.TJKDesign.com > > > > ______________________________________________________________________ > css-discuss [cs...@lists.css-discuss.org] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > List policies -- http://css-discuss.org/policies.html > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/