a element code example

Example 1: html link

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

Example 2: balise a html

<p>You can reach Michael at:</p>

<ul>
  <li><a href="https://example.com">Website</a></li>
  <li><a href="mailto:[email protected]">Email</a></li>
  <li><a href="tel:+123456789">Phone</a></li>
</ul>

Example 3: anchor tag

The HTML <a> element (or anchor element), with its href attribute, 
creates a hyperlink to web pages, files, email addresses, locations
in the same page, or anything else a URL can address. Content within
each <a> should indicate the link's destination.

Use:

<a href="https://example.com"> </a>

Example 4: a tag

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

Example 5: a tag html

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

Example 6:

<a> 
  "anchor"
  <!--meaning it is used to create a hyperlink to another webpage or elements within the same webpage-->
 </a>

Tags:

Css Example