html a href link 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: html a href

<a href="http://example.com" >Link text</a>

Example 4: link in html

<a href="https://example.com">Link text goes here</a>

Example 5: href html

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

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>