A.1. Element Listings

This section lists all of the elements defined in the strict DTD of XHTML 1.0.

A.1.1.

A.1.1.1. <a>

Specify either the inclusion or terminating point of a hyperlink.

A.1.1.1.1. Context
PlacementInline
ContentInline and text
A.1.1.1.2. Attributes
Optional
accesskey="<character>"

charset="<character encoding>"

coords="<length (pixels or percentage),...>"

href="<URL>"

hreflang="<language code>"

name="<anchor>"

onblur="<script>"

onfocus="<script>"

rel="<linktype ...>"

rev="<linktype ...>"

shape="rect|circle|poly|default"

tabindex="<number>"

type="<MIME type>"

Core

Internationalization

Standard events
A.1.1.1.3. Usage Example
<p><a name="lincoln-anchor">Lincoln's</a>
<a href="http://en.wikipedia.org/wiki/Gettysburg_Address">Gettysburg
Address</a> has both been widely noted and long remembered.</p>

NOTE

Using <a> as an anchor point with the name attribute is frequently seen with machine-generated HTML that includes a table of contents or an index.

A.1.1.2. <abbr>

Demarcate the enclosed text as an abbreviation.

A.1.1.2.1. Context
PlacementInline
ContentInline and text
A.1.1.2.2. Attributes
Optional
Core

Internationalization

Standard events
A.1.1.2.3. Usage Example
<p>If you're old enough to remember using <abbr>Fla</abbr> to send mail to
Florida, you're getting up there.  Of course, if you're old enough to remember
sending letters at all&hellip;</p>

NOTE

The W3C refers to acronyms such as HTTP as abbreviations, so the distinction between <abbr> and <acronym> ...

Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with O’Reilly online learning.

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