anchor link html code example
Example 1: html links
<a href="url">link text</a>
Example 2: html button link
<button><a href='https://google.com' alt='Broken Link'>This is a button</a></button>
Example 3: html anchor tag
The <a> tag defines a hyperlink, which is used to link from one page to another.
The most important attribute of the <a> element is the href attribute, which indicates the link's destination.
By default, links will appear as follows in all browsers:
1. An unvisited link is underlined and blue
2. A visited link is underlined and purple
3. An active link is underlined and red
Creating a link to programmingquest.com:
<a href="https://www.programmingquest.com">Visit ProgrammingQuest</a>