Anchor tag helps linking pages by redirecting by the interactive objects like hypertext and buttons.
Example code and Output:

Input:

Output:

With HyperText,

Redirects to https://example.com.

With Buttons,

Attribute

Description

Href

Href attribute is a config which configures that if we click the HyperText/Button which link should we get redirected.