learn2kode.in

HTML Links

Links in HTML allow users to navigate from one page to another.

 The <a> tag (anchor tag) is used to create links.

Basic Syntax

<a href="https://learn2kode.com">Visit Learn2Kode</a>

Important Link Attributes

Attribute Purpose
href URL of the page to open
target Where to open the link (_blank, _self, etc.)
title Tooltip text when hovering
download Downloads the linked file

Example with attributes

<a href="https://learn2kode.com" target="_blank" title="Go to Learn2Kode">
  Visit Learn2Kode
</a>