HTML and CSS Reference
In-Depth Information
via an on-event attribute and some programming. [ JavaScript Event
Handlers, 12.3.3 ]
5.1.2. Using Rules to Divide Your Document
Horizontal rules provide a handy visual navigation device for your read-
ers. To use <hr> effectively as a section divider, first determine how
many levels of headings your document has and how long you expect
each section of the document to be. Then decide which of your headings
warrants being set apart by a rule.
A horizontal rule can also delimit the front matter of a document, separ-
ating the table of contents from the document body, for example. Also
use a horizontal rule to separate the document body from a trailing in-
dex, bibliography, or list of figures.
Experienced authors also use horizontal rules to mark the beginning and
end of a form. This is especially handy for long forms that make users
scroll up and down the page to view all the fields. By consistently mark-
ing the beginning and end of a form with a rule, you help users stay
within the form, better ensuring that they won't inadvertently miss a
portion when filling out its contents.
5.1.3. Using Rules in Headers and Footers
A fundamental style approach to creating document families is to have
a consistent look and feel, including a standard header and footer for
each document. Typically, the header contains navigational tools that
help users easily jump to internal sections as well as related documents
in the family, and the footer contains author and document information
as well as feedback mechanisms, such as an email link to the webmas-
To ensure that these headers and footers don't infringe on the main
document contents, consider using rules directly below the header and
above the footer. For example (see also Figure 5-7 ):
Search WWH ::

Custom Search