HTML The Definitive Guide (89 page)

Read HTML The Definitive Guide Online

Authors: Chuck Musciano Bill Kennedy

BOOK: HTML The Definitive Guide
11.4Mb size Format: txt, pdf, ePub

No browser currently supports this attribute, so it is not clear how it might be used. Presumably, a browser would apply the styles defined within the


The @import command expects a single URL parameter that names the network path to the external style sheet. The url keyword, parentheses, and trailing semicolon are all required elements of the @import command. The URL may be absolute or relative to the document's base URL. The @import command must appear before any conventional style rules, either in the


Using the CSS model, the browser should prompt the user to choose between sheet1.css and sheet2.css. It will then load the selected sheet, followed by sheet3.css and sheet4.css.

Duplicate styles defined in sheet3.css or sheet4.css and in any inline styles will override styles defined in the selected sheet.

9.1.5 Limitations of Current Browsers

Both Internet Explorer 4.0 and Netscape 4.0 allow you to use the tag to apply an external style sheet to a document. Netscape ignores the @import command but continues to process other style rules within the