anchor html code code example

Example 1: hyperlink html

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

Example 2: 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 3: how to add an html anchor

<h2 id="Lorem_Ipsum">Lorem Ipsum</h2> <!--The anchor-->
<a href="#Lorem_Ipsum">top</a> <!--Linking to the anchor-->

Tags:

Misc Example