HTML: The Definitive Guide

Previous Preface Next
 

0.3 Text Conventions

Throughout the book, we use the courier typeface to highlight any literal element of the HTML standard, and tags and attributes. We always use lowercase letters for HTML tags. (Although the language standard is case-insensitive with regard to tag and attribute names, this isn't so for other elements like source filenames, so be careful.) We use the italic font to indicate new concepts when they are defined and those elements you need to supply when creating your own documents, such as tag attributes or user-defined strings.

We discuss elements of the language throughout the book, but you'll find each one covered in depth (some might say nauseating detail) in a shorthand, quick-reference definition box that looks like the box on the following page.

The first line of the box contains the element name, followed by a brief description of its function. Next, we list the various attributes, if any, of the element: those things that you may or must specify as part of the element. Tags and attributes may also be parenthetically labeled if they are not included in the HTML 2.0 standard (the last official version), but are additions to the language. ``Extension,'' as in the example, means that the nonstandard tag or attribute is supported by more than one of the popular browsers; otherwise the name of the extended browser appears--Mosaic, Netscape, or Internet Explorer--with the word ``only'' to identify the appropriate exception.

The description also includes the ending tag, if any, for the tag, along with a general indication if the end tag may be safely omitted in general use.

``Contains'' names the rule in the HTML grammar that defines the elements to be placed within this tag. Similarly, ``Used in'' lists those rules that allow this tag as part of their content. These rules are defined in Appendix A, HTML Grammar.

Finally, HTML is a fairly ``intertwined'' language: Elements occasionally are used in different ways depending on context, and many elements share identical attributes. Wherever possible, we place a cross-reference in the text that leads you to a related discussion elsewhere in the book. These cross-references, like the one at the end of this paragraph, serve as a crude paper model of hypertext documentation, one that would be replaced with a true hypertext link should this book be delivered in an electronic format. [tag syntax, 3.3.1]

We encourage you to follow these references whenever possible. Often, we'll only cover an attribute briefly and expect you to jump to the cross-reference for a more detailed discussion. In other cases, following the link will take you to alternate uses of the element under discussion, or to style and usage suggestions that relate to the current element.


Previous Home Next
Our Audience Book Index Is HTML 3.2 Really a Big Deal?
 


Banner.Novgorod.Ru