and
tags is ignored -->HTML files are structured as nested elements. An element consists of a start tag, a corresponding end tag, and the text between them. For example <I>this</I> is a simple I element. Some elements have their end tags implied by context. Each element has rules, determined by its tags, about the type of elements which it can contain.
The BODY element may contain ADDRESS, BLOCKQUOTE, DL, H1, H2, H3, H4, H5, H6, HR, IMG, OL, P, PRE, and UL elements. It may not contain text outside of an element. A common mistake is to forget to open a paragraph with a <P> tag. Examples of each of these legal elements follow.
The P element indicates a paragraph, and is used throughout
this example page. It may contain text outside an element as well
as the elements
A
(like this link to the bottom of the page),
IMG (), BR,
and the formatting elements TT, CODE
,
SAMP, KBD, VAR, B,
STRONG, I, EM, and CITE.
NOTE:Use of the ADDRESS tag is not recommended, as there does not appear to be any consensus what it means.
This text is set off from the main text within a BLOCKQUOTE element.
BLOCKQUOTE elements are often handy to force indentation, even if their contents are not really quoted text. The legal contents of a BLOCKQUOTE element are the same as those of a BODY element.
Next is an example of a definition list, the DL element. The DL element may contain only DT and DL elements. Note that DT and DD elements may omit their end tags. Here they are included to make the nesting clear.
A horizontal rule:
An IMG element:
An ordered list is indicated by the OL element. The OL element may contain only LI elements. The TYPE attribute of the OL tag determines the symbols used to order the list.
The PRE element causes a block of text to be printed as it appears within the HTML file, without interpretation of any HTML tags, and using the original line breaks. It is most useful for displaying source code or for displaying rudimentary tables.
The I element is used to cause text to be displayed in italics
Finally, unordered (or bulleted) lists are indicated by the UL element.