Tutorial User Guide > Introduction to HTML > Document Tags
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">   
Document Tags
Below are some rules and guidelines for using document tags. For a full list of supported tags, see Supported HTML Tags and Options, 57.
Tags are used within an HTML document to divide a web page into its basic sections, such as headers, paragraphs, lists, etc.
Tags consist of a left angle-bracket (<), a tag name, and a right angle-bracket (>)
Tags need to be paired to start and end the tag instruction, <tag> ... </tag>, in order to guarantee well formed XML format for future portability of the drive pages
These pairs define the format rules which are applied to the information between the <tag> and the </tag>
Tags are not case sensitive, but future XML parsing is. Use consistent upper case for future compatibility.
Tag Definitions
HTML
The first and last tags in a document should be <html> tags. This tells the web browser that the file contains HTML information.
HEAD
The <head> tag contains all the document header information.
TITLE
The <title> tag defines the title of the document, and will appear at the top of the browser in the title bar. The contents of this tag will appear if the page is bookmarked. There can only be one <title> defined per document.
body
Everything within the <body> tags defines what gets displayed to the browser window, such as paragraphs, headings, lists and graphics.
Comments
Comments can be put in the body of the HTML file with a <! > tag:
<!-- this is an example of a comment -->
Paragraphs
The beginning of a paragraph is marked by a <p>, and ends with a </p>. Unlike word processors, HTML doesn’t recognize carriage returns within a paragraph. All spaces, line feeds and carriage returns are compressed into a single space when the HTML document is displayed in a web browser.
Preformatted Text
Use of the <PRE> tag will produce a display just as the text is formatted in the source HTML file. For example:
<PRE>
Node ID Stress(psi)
241 13, 264
356 12, 675
711 10, 534
</PRE>
will display in the web browser as:
Node ID Stress(psi)
241 13, 264
356 12, 675
711 10, 534