Organization of Elements in the BODY
A. Text Block Elements
The BODY element contains
all the displayed content of a document. Structurally, the document
content is organized into blocks of text, such as
- paragraphs,
- lists,
- headings,
and so on.
These are generically called block elements, since they
"block" chunks of text together into logical units.
Block elements can often contain other blocks -- for example, a list item can contain
paragraphs or headings, so that these elements can often nest together.
Some block-level elements are:
- Hn (Headings)
- P
- ADDRESS
- PRE
- HR
- TABLE
B. Text Emphasis Elements
At the next level down are text-level markup elements. These
are elements that mark text for special meanings.
For example:
- that a particular piece of text is emphasized
<EM>
- specify the desired physical formatting, such as
- boldface
<B>
- italics
<I>.
These elements can usually appear anywhere inside a block element, with a few exceptions
(you can't have images inside a <PRE> element).
C. Special Elements -- Hypertext Anchors
Analogous to the text-level markup is the anchor <A>
element. This is the element that marks hypertext links. Obviously
you want to know a lot about this one.
D. Character-Level Elements
Then are what I call character-level elements:
- Line breaks
<BR>and
- Images
<IMG>.
These are treated much like characters, and can appear wherever there is a character in
a document.
E. Character References
Finally there are character or entity references. These
are special HTML codes that can be used to enter special
characters that are hard to type, such as accented or other
non-ascii characters.