href tag html code example

Example 1: html a href

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

Example 2: html link tag

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

Example 3: a tag

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

Example 4: href html

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

Example 5: a tag html

<a href = 'website.com/your/linked/page'>Text in link</a>

Example 6: a href tag

Actually href is a html attribute, which is used for passing page url to the a tag.
Example
<a href="url">Click here</a>

Tags:

Html Example