HTML Quick
HTML Quick
ca/ian/books/extras/
HTML AND XHTML QUICK REFERENCE CHARTS: HEAD AND BODY MARKUP
Element Description and Browser Support
Key to this Figure
<html> ... </html> Bounds of HTML or XHTML document
<head> ... </head> Document head (document meta data) HTML Version
<base /> Base URL for the document (i.e., original URL)
<isindex /> Simple search interface (use form instead) <tag> Standard elements
<link /> Relationship(s) to other resources (e.g., style sheets) <tag> Netscape/Microsoft
<meta /> Document meta-information (e.g., for search engines) extensions – avoid if possible
<script> ... </script> Inline script program (e.g., JavaScript, VBscript) <tag> Deprecated -- avoid if
<style> ... </style> Style sheet rules [IE3+, NN4+, OP3.6+] possible
<title> ... </title> Document title (contains text only, no markup)
<body> .. </body> Document body (contains what gets displayed) Element Tag Rules
<address> ... </address> Address information <tag> ... </tag>
<blockquote> ... </blockquote> Block quotation Element has content, and the
<center> ... </center> Center element contents (use div instead) end tag is mandatory.
<div> ... </div> Block division of document <tag /> Element is empty.
<hn> ... </hn> Headings, from h1 to h6
<hr /> Horizontal rule or divider Element Content Rules
<p> ... </p> Paragraph Right hand elements must be
<pre> ... </pre> Preformatted text (preserve white space characters) inside indicated left-hand
<form> ... </form> Fill-in form element.
<keygen /> Create encrypted key to identify user [NN3+, OP3.6+]
<button> ... </button> Advanced input button [IE4+, NN6] Left hand element can
<fieldset> ... </fieldset> Grouped set of input elements [IE4+, NN6] contain the indicated right-
<legend> ... </legend> Label for a fieldset [IE4+, NN6] hand elements.
<label> ... </label> Label for an input [IE4+, NN6]
<input /> General input element (text, checkboxes, etc.) frameset is an alternative to
<select> ... </select> Selectable list of items the body element
<optgroup> </optgroup> Group of option elements in a selectable list [No
support]
<option> ... </option> Item in list (inside select or optgroup) Browser Support Descriptions
<textarea> ... </textarea> Multi-line text input area Elements are supported by essentially
<dl> ... </dl> Glossary or description list all current browsers unless a list of
<dt> ... </dt> Term in list browsers is given in square brackets
<dd> ... </dd> Term description after the description. If such a list is
<ol> ... </ol> Ordered list (., numbered) present, then only the listed browsers
<li> ... </li> List item support the element. The following 2-
<ul> ... </ul> Unordered list (e.g., bulleted) letter notation is used to describe
<li> ... </li> List item these browsers:
<dir> ... </dir> Directory-style listing (use ul instead)
<li> ... </li> List item IE Internet Explorer
<menu> ... </menu> Menu list (use ul instead) NN Netscape Navigator
<li> ... </li> List item OP Opera
<table> ... </table> Tabular content (columns and rows) LY Lynx
<caption> ... </caption> Table caption WT WebTV
<colgroup> ... </colgroup> Define groups of columns [IE4+, NN6]
<col /> Set column properties [IE4+, NN6] ... followed by a browser version
<tbody> ... </tbody> Group rows making up table body [IE4+, NN6] number. This may then by followed by
<tfoot> ... </tfoot> Group rows making up table footer [IE4+, NN6] a '+' sign if the element is also
<thead> ... </thead> Group rows making up table header [IE4+, NN6] supported by subsequent versions of
<tr> ... </tr> Table row (preferably inside thead,tbody or tfoot) that browser
<td> ... </td> Table content -- data
<th> ... </th> Table content -- header (row or column description) For example:
<multicol> ... </multicol> Multi-column text [NN4 only]
IE4+ Supported by Internet
<frameset> ... </frameset> Frameset document (replaces body element) Explorer 4 and greater.
<frame /> Defines frame content (using a URL) NN4 Supported by Navigator 4,
<frameset> ... </frameset /> Subdivides a frame into additional frames but not by Navigator 6.
<noframes> ... </noframes> Alternate content ( if frames not supported)
<body> ... </body> a body (containing, in turn, regular body content)
Last Update: 7 November 2000 1/2 The XHTML 1.0 Language and Design Sourcebook
Copyright © 1996-2000 Ian S. Graham http://www.utoronto.ca/ian/books/xhtml1/
HTML / XHTML Quick Reference This document: http://www.utoronto.ca/ian/books/extras/
Last Update: 7 November 2000 2/2 The XHTML 1.0 Language and Design Sourcebook
Copyright © 1996-2000 Ian S. Graham http://www.utoronto.ca/ian/books/xhtml1/