create link html code example

Example 1: how to make a link in html

<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <a href="link">link name</a>
  </body>
</html>

Example 2: 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 3: how to display a link in html

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

Example 4: how to add links in html

<a class="class" href="link" id="id">Text</a>

Tags:

Misc Example