The link tag <a>
The <a>
tag ("a" stands for "anchor") defines a hyperlink. It has a required attribute href
that defines the link's destination — without it, the link simply won't work.
The link text goes between the start and the closing tags — that's how the link's name will be displayed to your users. You can also use other elements as links — for example, images or buttons (we'll talk more about that in the lesson about links).
The target attribute specifies where to open the linked document. By default, all links open inside the same window but specifying the attribute target="_blank"
will open it in a new window or tab.[1]