<a>—Creating a Hyperlink or Anchor

The <a> element creates a hyperlink (use the href attribute) or anchor (use the id and/or the deprecated name attribute for browsers that need to use name, such as Netscape Navigator). This element is supported in XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, and XHTML 1.1. Here are this element's attributes:

  • accesskey— Assigns a keyboard access key to the hyperlink. (XHTML 1.0 Strict, XHTML 1.0 Transitional.)

  • charset— Indicates the character encoding of the hyperlink's target. Set this to Request for Comments (RFC) 2045 language character set string. The default value is ISO-8859-1. (XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, XHTML 1.1.)

  • class— Gives the style class of the element. ...

Get Real World XML 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.