Webmaster
-
xhtml (3) – reference
This reference is a best-practice approach, based on XHTML 1.0 Strict / XHTML 1.1:
"Must know" list
In priority order: DOCTYPE, html, head, title, style, body, h1, h2, h3, h4, h5, h6, p, ol, ul, li, table, tr, th, td, a, img
Complete list
XML Declaration, DOCTYPE, a, abbr, acronym, address, area, b, base, bdo, big, blockquote, body, br, button, caption, cite, code, col, colgroup, dd, del, dfn, div, dl, dt, em, fieldset, form, h1, h2, h3, h4, h5, h6, head, hr, html, i, img, input, ins, kbd, label, legend, li, link, map, meta, noscript, object, ol, optgroup, option, p, param, pre, q, rb, rbc, rp, rt, rtc, ruby, samp, script, select, small, span, strong, style, sub, sup, table, tbody, td, textarea, tfoot, th, thead, title, tr, tt, ul, var
Grouped by function
Grouped by function:
Declarations
XML Declaration: Version of XML being used
DOCTYPE Declaration: Document type declaration
Structure & Header Elements
base: An absolute URL to resolve relative URLs
body: Holds content of the document
head: Holds additional information about the document
html: Root element of the document
link: Link to another resource
meta: Additional information about the document
script: Client-side script
style: CSS style information
title: Document title
Block Elements
address: Identify contact information for a document
blockquote: Long quotation
del: Deleted content
div: Generic way to group areas of content
dl: Definition list
fieldset: Form control group
form: Data entry form
h1: Level 1 heading
h2: Level 2 heading
h3: Level 3 heading
h4: Level 4 heading
h5: Level 5 heading
h6: Level 6 heading
hr: Content separator
ins: Inserted content
noscript: Alternate content for client-side script
ol: Ordered list
p: Paragraph
pre: Preformatted text
script: Client-side script
table: Table
ul: Unordered list
Inline Elements
a: A hyperlink
abbr: An abbreviation
acronym: An acronym
b: Instruction to render text in bold style
bdo: Bidirectional text override
big: Instruction to render text in a large font
br: Line break
button: Form button control
cite: Citation or reference to other source
code: Computer code
del: Deleted content
dfn: Contains the defining instance of the enclosed term
em: Indicates emphasis
i: Instruction to render text in italic style
img: Image
ins: Inserted content
input: Form control
label: Form control label
map: Client-side image map
kbd: Indicates input to be entered by the user
object: Generic embedded object
q: Short quotation
ruby: Pronunciation annotations for East Asian languages
samp: Designates sample output from programs, scripts, etc.
script: Client-side script
select: Option selector form control
small: Instruction to render text in a small font
span: Generic way to add structure to content
strong: Indicates stronger emphasis
sub: Subscript
sup: Superscript
textarea: Multi-line text field form control
tt: Teletype or monospaced text style
var: Indicates instance of a computer code variable or program argument
List Item Elements
dd: Definition description
dt: Definition term
li: Ordered/unordered list item
Table Content Elements
caption: Table caption
col: Define attributes for a table column
colgroup: Define attributes for a group of table columns
tbody: Body area for a table
td: Table cell containing data
tfoot: Footer area for a table
th: Table cell containing header
thead: Heading area for a table
tr: Table row
Form Fieldset Legends
legend: Caption to a fieldset
Form Menu Options
optgroup: A grouping of selectable choices in an option selector form control
option: A selectable choice in an option selector form control
Map Areas
area: Client-side image map area
Object Parameters
param: Embedded object customization properties
Ruby Annotations
rb: Ruby base text
rbc: Ruby base container for complex ruby markup
rp: Denote the beginning and end of ruby text
rt: Ruby annotation text
rtc: Ruby text container for complex ruby markup
Notes
This reference is based on XHTML 1.0 Strict / XHTML 1.1. With the exception of ruby elements which are part of XHTML 1.1, the two specifications are almost identical from a markup perspective.
When using the XHTML 1.0 Strict DOCTYPE, the attribute lang may be used instead of the attribute xml:lang.
When using the XHTML 1.0 Strict DOCTYPE, the attribute name may be used instead of the attribute id for elements a and map.
Further reading
Serving XHTML As XML
Serving XHTML As HTML
Copyright
This XHTML Reference may be distributed under the terms of the GNU Free Documentation License.
Portions of this document are copyrighted by:
Copyright © 2002-2006 xhtml.com
Copyright © 2004 W3C
Copyright © David Chau
HTML 4.01/XTML 1.0 Reference
Ordered Alphabetically
DTD: indicates in which XHTML 1.0 DTD the tag is allowed.
S=Strict
T=Transitional
F=Frameset

TagDescriptionDTD
<!--...-->
<!DOCTYPE>
<a>
<abbr>
<acronym>
<address>
<applet>
<area>
<b>
<base>
<basefont>
<bdo>
<big>
<blockquote>
<body>
<br />
<button>
<caption>
<center>
<cite>
<code>
<col>
<colgroup>
<dd>
<del>
<dir>
<div>
<dfn>
<dl>
<dt>
<em>
<fieldset>
<font>
<form>
<frame>
<frameset>
<h1> to <h6>
<head>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<isindex>
<kbd>
<label>
<legend>
<li>
<link>
<map>
<menu>
<meta>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<p>
<param>
<pre>
<q>
<s>
<samp>
<script>
<select>
<small>
<span>
<strike>
<strong>
<style>
<sub>
<sup>
<table>
<tbody>
<td>
<textarea>
<tfoot>
<th>
<thead>
<title>
<tr>
<tt>
<u>
<ul>
<var>
<xmp>
 
Defines a comment
Defines the document type
Defines an anchor
Defines an abbreviation
Defines an acronym
Defines an address element
Deprecated. Defines an applet
Defines an area inside an image map
Defines bold text
Defines a base URL for all the links in a page
Deprecated. Defines a base font
Defines the direction of text display
Defines big text
Defines a long quotation
Defines the body element
Inserts a single line break
Defines a push button
Defines a table caption
Deprecated. Defines centered text
Defines a citation
Defines computer code text
Defines attributes for table columns
Defines groups of table columns
Defines a definition description
Defines deleted text
Deprecated. Defines a directory list
Defines a section in a document
Defines a definition term
Defines a definition list
Defines a definition term
Defines emphasized text
Defines a fieldset
Deprecated. Defines text font, size, and color
Defines a form
Defines a sub window (a frame)
Defines a set of frames
Defines header 1 to header 6
Defines information about the document
Defines a horizontal rule
Defines an html document
Defines italic text
Defines an inline sub window (frame)
Defines an image
Defines an input field
Defines inserted text
Deprecated. Defines a single-line input field
Defines keyboard text
Defines a label for a form control
Defines a title in a fieldset
Defines a list item
Defines a resource reference
Defines an image map
Deprecated. Defines a menu list
Defines meta information
Defines a noframe section
Defines a noscript section
Defines an embedded object
Defines an ordered list
Defines an option group
Defines an option in a drop-down list
Defines a paragraph
Defines a parameter for an object
Defines preformatted text
Defines a short quotation
Deprecated. Defines strikethrough text
Defines sample computer code
Defines a script
Defines a selectable list
Defines small text
Defines a section in a document
Deprecated. Defines strikethrough text
Defines strong text
Defines a style definition
Defines subscripted text
Defines superscripted text
Defines a table
Defines a table body
Defines a table cell
Defines a text area
Defines a table footer
Defines a table header
Defines a table header
Defines the document title
Defines a table row
Defines teletype text
Deprecated. Defines underlined text
Defines an unordered list
Defines a variable
Deprecated. Defines preformatted text
STF
STF
STF
STF
STF
STF
TF
STF
STF
STF
TF
STF
STF
STF
STF
STF
STF
STF
TF
STF
STF
STF
STF
STF
STF
TF
STF
STF
STF
STF
STF
STF
TF
STF
F
F
STF
STF
STF
STF
STF
TF
STF
STF
STF
TF
STF
STF
STF
STF
STF
STF
TF
STF
TF
STF
STF
STF
STF
STF
STF
STF
STF
STF
TF
STF
STF
STF
STF
STF
TF
STF
STF
STF
STF
STF
STF
STF
STF
STF
STF
STF
STF
STF
STF
TF
STF
STF