FANDOM


a href Edit

Href
Basic usage: <a href="http://www.example.com/default.htm>
IE Version Yes
Firefox Yes
Google Chrome Yes
Safari Yes
Opera Yes

The href attribute specifies the destination of a link.

Attribute ValuesEdit

Value Description
URL The URL of the link.

There are 3 types of URl:

  • An absolute URL - points to another web site (like href="http://www.example.com/default.htm")
  • A relative URL - points to a file within a web site (like href="default.htm")
  • An anchor URL - points to an anchor within a page (like href="#top")