170 Appendix A
Embedded content
The elements are listed alphabetically within each section, and the follow-
ing information is presented:
Usage A general description of the element.
Attributes Lists the attributes of the element with a short
description of their effect.
Notes Relates any special considerations when using the element.
Caution Several elements and attributes of HTML
have been deprecated by the current XHTML specifica-
tion. They have been outdated and you should avoid
using them. Those deprecated elements and attributes
have been eliminated in this appendix.
Following this, the common attributes and intrinsic events are summarized.
Required Elements
HTML relies on several elements to define the document as well as to
provide information that is used by the browser or search engine.
Tip Several common attributes used for structure,
internationalization, and events are abbreviated as
core, i18n, and events in the following quick reference
sections. The description for each of these abbrevia-
tions can be found later in the “Common Attributes
and Events” section.
171HTML/XHTML Quick Reference
Usage Contains the document’s content.
core, i18n, events.
onload=”...” Intrinsic event triggered when the doc-
ument loads.
onunload=”...” Intrinsic event triggered when the
document unloads.
Notes There can be only one
<body>, and it must follow the
<head>. The <body> element can be replaced by a
<frameset> element.
Usage Version information appears on the first line of an
HTML document and is an SGML declaration rather
than an element.
html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
Used for documents following the
Strict XHTML requirements.
html PUBLIC “-//W3C//DTD XHTML 1.0
Transitional//EN” “http://www.w3.org/TR/
Used for
documents following the XHTML requirements, but
also including some deprecated elements.
html PUBLIC “-//W3C//DTD XHTML 1.0
Used for framed
172 Appendix A
Usage This is the document header and contains other ele-
ments that provide information to users and search
profile=”...” URL specifying the location of
meta data.
Notes In general, there can be only one
<head> per document.
It must follow the opening
<html> tag and precede the
<body>. The <head> must include a <title>.
Usage The html element contains the entire document.
<meta />
Usage Provides information about the document.
http-equiv=”...” HTTP response header name.
name=”...” Name of the meta information.
content=”...” Content of the meta information.
scheme=”...” Assigns a scheme to interpret the
meta data.
Usage This is the name you give your Web page. The <title>
element is located in the <head> element and is dis-
played in the browser window title bar.

Get Sams Teach Yourself HTML in 10 Minutes, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.