Creating Hyperlinks

The <a> tag creates hyperlinks to other pages or sections.

Attributes

  • href: Specifies the URL or anchor
  • target: Defines where the link opens (e.g., _blank for new tab)
HTML
<a href="https://example.com">Visit Example</a> <a href="#section">Jump to Section</a>

Your Task

Create a webpage with:

  1. An external link to a website (e.g., https://example.com)
  2. An internal link to a section with an id attribute
AI Learning Assistant

Live Preview