2. HTML Specification
An HTML document is like a text file, except that some of the characters are markup. Markup (tags) define the structure of the document.
To identify information as HTML, each HTML document should start with the prologue:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
Example:
<H1>This is a Heading</H1>Some elements only have a start tag without an end tag. For example, to create a line break, you use the <BR> tag. Additionally, the end tags of some other elements, such as Paragraph (<P>), List Item (<LI>), Definition Term (<DT>), and Definition Description (<DD>) elements, may be omitted.
The content of an element is a sequence of characters and nested elements. Some elements, such as anchors, cannot be nested. Anchors and character highlighting may be put inside other constructs.
In a start tag, the element name must immediately follow the tag open delimiter <.
The value of the attribute may be either:
<A HREF="http://host/dir/file.html">
<IMG SRC="image.ps" alt="First "real" example">The length of an attribute value is limited to 1024 characters after replacing entity and numeric character references.
<UL COMPACT="compact">can be written using a minimized syntax:
<UL COMPACT>
For example:
<HEAD> <TITLE>HTML Guide: Recommended Usage</TITLE> <!-- Id: Text.html,v 1.6 1994/04/25 17:33:48 connolly Exp --> </HEAD>
Generated with CERN WebMaker