Course Content
About Lesson

Definition:


A hyperlink is an element in an HTML document. Hypertext is text with hyperlinks. The linked text (the reference to data) is called anchor text. You use anchor tags to create hyperlinks to other webpages. They create links: a clickable text or image that, when clicked, takes us to a new page or to a different part of the same page.

HTML consists of hyperlinks. They are an essential and defining feature of the World Wide Web, and they’re what has made the Web so successful. They enabled the very idea of browsing. They give us the ability to connect a document to another document across different computers and networks.

  • Tag:
    1. <a> – The <a> tag in HTML is used to create hyperlinks, allowing you to link to other web pages, resources, or files. “A” stands for “anchor,” and it’s commonly referred to as the anchor tag.
  • Attributes:
    1. href – In this attribute, link of website is added to which website you want to visit. 

Syntax:


<a href="#">....Name of Link that you want to display....</a>

Example:


HTML
<!DOCTYPE html>
<html>

<head>

    <title>Html Links</title>

</head>

<body>
    <h1>HTML Links</h1>
    <a href="https://practicise.com/"> This Is Practicise Website Link </a>
</body>

</html>

Output: