HTML Anchor Links: What Are They & How to Use Them for UX
An anchor tag (<a>) in HTML is an element that creates a link to webpages, email addresses, documents, images, and more.
It looks like this:
The element starts with “<a,” ends with “</a>.” And contains various attributes that make up the full tag.
We’ll get into the attributes below.
You can also use the anchor tag to create anchor links. Anchor links (or “jump” links) link to different sections of the same webpage.
When you create text links with the “a” tag, you’ll need to use some kind of anchor text. Anchor text is the part of the link that’s clickable. Google uses this text to learn more about the link and the content it points to.
HTML Anchor Element Attributes
You can add different attributes to your anchor tags to specify what you want to happen when a user clicks.