Type something to search...

HTML Links

Links are created using the <a> tag. They allow users to navigate between web pages or external resources.

Example:

<a href="https://example.com">Visit Example</a>

Attributes of <a> Tag:

  1. href: Specifies the URL of the page the link goes to.
  2. target: Specifies where to open the linked document (_blank for a new tab).

Example with target:

<a href="https://example.com" target="_blank">Open in New Tab</a>

Next Steps

In the next tutorial, we will explore HTML Images, where you will learn how to add visual content to your web pages.

Next: HTML Images →