Anchor | WebReference

Anchor

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Anchor

<a> ... </a>

Description: Indicates a link or target on the page.

Browser Compatibility: NN: 1.0+ / IE: 2.0+ / Opera: 4+

Attributes:
  • accesskey
  • charset
  • class
  • coords
  • dir
  • href
  • hreflang
  • id
  • lang
  • name
  • onblur
  • onclick
  • ondblclick
  • onfocus
  • onhelp
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup
  • rel
  • rev
  • shape
  • style
  • tabindex
  • target
  • title
  • type

Code Example:

This would be used for an <a href="http://www.webreference.com">external link</a>


This would be used for a link <a name="#mylink">within the same document.</a>



Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/