html href tag code example

Example 1: html a href

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

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: html link tag

<head>
  <link rel="stylesheet" type="text/css" href="theme.css">
</head>

Example 4: a tag html

<!-- a tags in html are link tags that hold hyperlinks to other
 pages, or anchors in the same page -->
<a href='https://www.google.com'>Click here to visit Google.com</a>

<!-- the href attribute specifies where the link should lead -->
<!-- hope it helped! -->

Example 5: a tag

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

Example 6: href html

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

Tags:

Misc Example