hyperlink in html code example

Example 1: html links

<a href="url">link text</a>

Example 2: html link

<a href="https://www.google.com/">Link to google</a>

Example 3: how to make links in html

<a href="link.html"> text link </a> <!-- link to html -->
<a href="google.com" URL> Google </a> <!-- link to site -->
<a href="link.html"><button> Link </button></a> <!-- Button link -->

Example 4: how to make a hyperlink in html

<a href="url">link text</a>

Example 5: hyperlink html

<!DOCTYPE html>
<html>
<body>

<h2>Absolute URLs</h2>
<p><a href="https://www.w3.org/">W3C</a></p>
<p><a href="https://www.google.com/">Google</a></p>

<h2>Relative URLs</h2>
<p><a href="html_images.asp">HTML Images</a></p>
<p><a href="/css/default.asp">CSS Tutorial</a></p>

</body>
</html>

Example 6: how to use link tag in html

<!DOCTYPE html>
<html>

   <head>
      <title>HTML link Tag</title>
      <link rel = "stylesheet" href = "stylenew.css">
   </head>

   <body>
      <div id = "contentinfo">
         <p>Welcome to our website. We provide tutorials on various subjects.</p>
      </div>
   </body>

</html>

Tags:

Css Example