asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Authoring Your Web Pages > Anchors and Links

Anchors and Links

Previous: HTML Elements   Next: Using Tables


The A element

To define a link using the A element, we

  • markup the source anchor within anchor tags (<a> and </a>), and
  • set the value of the element’s href attribute to the link’s destination anchor.

<a href="destination anchor">source anchor</a>

The href attribute specifies the address of the destination anchor with a Universal Resource Identifier, or URI.

The source anchor is what a user interacts with. Browsers normally render the source anchor in such a way as to indicate the presence of a link, e.g., by underlining the content.

We commonly use the A element to:

  • link to another hypertext document, or
  • link to a specific location within the same, or another, hypertext document


More ...
Back to top


© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note