HTML Quick Reference

We use the alert icon ‼ to the far right of each item to indicate tags and attributes that are extensions to the HTML 4.01 and XHTML 1.0 standards. We use the Internet Explorer icon to identify those extension tags and attributes that are unique to Internet Explorer and are not well supported by the other popular browsers. Even though we include them in the main text, we have not included here any of the antiquated or obsolete elements or attributes that are explicitly not part of the standards and are no longer supported by any browser.

We include the possible attributes (some required) indented below their respective tags. In the description, we give possible attribute values as either a range of integer numbers or a definitive list of options, where possible.

<a> ... </a>

Create a hyperlink anchor (href attribute) or fragment identifier (id attribute).

 

accesskey= char

Define the hot-key character for this anchor.

 

charset= encoding

Specify the character set used to encode the target.

 

coords= list

Specify a list of shape-dependent coordinates.

 

href= url

Specify the URL of a hyperlink target.

 

hreflang= language

Specify the language encoding for the target.

 

name= name

Specify the name of a fragment identifier.

rel= relationship

Indicate the relationship of this document to the target.

 

rev= relationship

Indicate the reverse relationship ...

Get HTML & XHTML: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.