a - href

<a href="URL">


Possible values for 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")
  • Link to an element with a specified id within the page - (like href="#section2")
  • Other protocols - (like https://, ftp://, mailto:, tel:, sms:, file:, etc..)
  • A script - (like href="javascript:alert('Hello');")