HTML and CSS Reference
In-Depth Information
The implementation of this type of structure, if all those levels of granu-
larity are helpful, could look something like the following:
<link type=”text/css” href=”styles/ global.css ”>
<link type=”text/css” href=”styles/ forums.css ”>
<link type=”text/css” href=”styles/ forum_help.css ”>
Commenting and Code Documentation
Though individual CSS rules are quite easy to read and understand (“this
rule makes the body background white”), even the most basic web
sites will have a few hundred lines of CSS code. Since CSS has no inher-
ent structure to the code like HTML has its document tree, using CSS
comments to distinguish sections and structure of the document as well
as to keep notes on individual selectors or properties is important.
Start each document with some information on what the document
should contain and an inventory of its contents so it is easy to follow.
* Global Styles
* Contents:
* 1. Basic HTML elements
* 2. Layout Grid
* 3. Header Content Styles
* 4. Page Content Styles
* 4a. Index Page Content
(continues on next page)
Search WWH ::

Custom Search