Page links in an HTML Web Page

Links in an HTML web page helps you in linking one page to another. To add a hyperlink, use the <a></a> tag and the href attribute,

<a href="">My Link</a>

Under the above <a> tag, we will add the link,

<a href=”https://studyopedia.com/tutorials/computer-networks/”>Computer Networks Tutorial</a>

The &lt;a&gt;…&lt;/a&gt; tag should always come inside &lt;body&gt;…&lt;/body&gt; tags.

The below example gives an overview of how to add links to an HTML web page,

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Links Example</title>
   </head>
   <body>
      <h2>Tutorials</h2>
      <a href="/tutorials/drupal-commerce">Drupal Commerce</a>
      <a href="/tutorials/prestashop">Prestashop</a> 
      <a href="/tutorials/java">Java</a> 
      <a href="/tutorials/cpp">C++</a> 
   </body>
</html>

The output:

Create links in HTML

More Examples


Creating Paragraphs in HTML Web Page
Inserting Image in HTML
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment