This tag stands for an Anchor. It is primarily used to navigate between the various parts of the article or different web pages. The linked text is known as a Hyperlink.
How To Use a Tag In HTML
An anchor tag can be used with the following attributes and their possible values.
specifies that the target should be downloaded instead of navigated to
The target destination of a link.
- Valid URL
Specifies in which context the target destination should open.
- _self: Opens link in current window / tab.
- _blank: Opens link in a new window / tab.
It defines the relationship between the link’s page and the link’s target destination.
- alternate: An alternative version of the page.
- author: Details of the page author.
- bookmark: A link to the current section of the page.
- help: Help text for the context.
- license: A license for the current document.
- next: It denotes the current page is in a sequence. The linked page will be the next page in the sequence.
- prev: It denotes the current page is in a sequence. The linked page was the previous page in the sequence.
- nofollow: Denotes that the linked resource is not endorsed by the current document's author.
- noreferrer: The browser will not send an HTTP referrer header when following the link.
- prefetch: Enable pre-fetching of the linked resource.
It defines the language of the target of the link.
- Valid Language Codes, such as en (English) or es (Spanish).
MIME Type of the defined link
For the creation of jump links, the target element doe not need to have an anchor tag. The target can be defined using id attribute on any element and jump links will still work.
a tag for page navigation:
a tag for jump links:
a tag for force download: