href
attributeIf the value of the href
attribute is a
URL
, it may contain any of the following components:
If the protocol scheme, host name/IP address and port number are omitted the default is the current host - the same server handling the current document. If the path starts with a slash /...
, it is an absolute path from the base of the current document, which defaults to the document root directory on the server. A URL with a "#" but no fragment identifier points to the top of the document.
<a href="#">back to top</a>
<a href="another-page.html">another page</a>
<a href="/another-section/">another section</a>
<a href="http://www.ExampleOnly.com/">Example Only</a>
id
attributeid
attribute Home > HTML Tags > HTML <a> Anchor Tag > Attributes
Viewing mobile website page. Switch to WML or Full HTML