Launch your tech mastery with us—your coding journey starts now!
Course Content
HTML Elements and Attributes
0/2
HTML Styles
0/1
HTML Lists
0/1
JavaScript with HTML
0/1

HTML Links Hyperlinks

HTML Links, also known as hyperlinks, are defined by the <a> tag in HTML, which stands for “anchor.” These links are essential for navigating between web pages and directing users to different sites, documents, or sections within the same page.

The basic attributes of the <a> tag include href, title, and target, among others.

A Simple HTML Link Example

In this example, we contains a paragraph instructing users to click on the link labeled “Sunitacscorner,” which directs to the website “https://www.cssunitarai.org//////”.

<!DOCTYPE html>

<html>

<head>

    <title>HTML Links</title>

</head>

<body>

    <p>Click on the following link</p>

    <a href=”https://www.cssunitarai.org//////”>

        Sunitacscorner

    </a>

</body>

</html>

 

By default, links will appear as follows in all browsers:

  • An unvisited link is underlined and blue.
  • A visited link is underlined and purple.
  • An active link is underlined and red.