Style sheet content
The style sheet document is a plain-text document that contains at least one style sheet rule. It may not contain HTML tags (after all, it isn’t an HTML document) and so including HTML tags may cause parts of the style sheet to be ignored. HTML comments are also not permitted, however, comments may be inserted in the style sheet by using the CSS comment syntax shown here:
/* This is the end of the chapter */
There are two ways to refer to external
style sheets
(which should be named with the .css suffix) from within a document: the link
element and the @import
directive.
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.