Computer >> Computer tutorials >  >> Programming >> HTML

How to Insert Hyperlink in HTML Page?


With HTML, easily add hyperlinks to any HTML page. Link team page, about page, or even a test by creating it a hyperlink. You can also create a hyperlink for an external website. To make a hyperlink in an HTML page, use the <a> and </a> tags, which are the tags used to define the links.

The <a> tag indicates where the hyperlink starts and the </a> tag indicates where it ends. Whatever text gets added inside these tags, will work as a hyperlink. Add the URL for the link in the <a href=” ”>. Just keep in mind that you should use the <a>…</a> tags inside <body>…</body> tags.

How to Insert Hyperlink in HTML Page?

Example

You can try to run the following code to insert a hyperlink in an HTML page

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Hyperlinks</title>
   </head>

   <body>
      <h1>Company</h1>
      <p>
         We are a <a href="/about/about_team.htm">team</a> of professionals working
         hard to provide free learning content.
      </p>
   </body>
</html>

Output

How to Insert Hyperlink in HTML Page?