external link html code example

Example 1: html link

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

Example 2: linking external pages html

<a href="https://www.w3schools.com/html/">Visit our HTML tutorial</a>

Example 3: link to external site html

<a href="https://www.example.com">This is a link</a>

Example 4: 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