HTML/Links

Links are used to connect web pages together. They can do more than link, but for right now, we will focus on the basics.

The tag
A link is denoted by the  tag and requires a   closing tag. For example: The text in between the   tag and the closed   tag is the text that the link will be displayed at. The example above will look like Example. The  attribute, a characteristic with a value inside the opening HTML tag, is the thing that tells  the link where the person is going to go when they click on it. In between the two quotes is the URL of where you want the link to go.

Anchors
Anchors can be used to create links to specific points in an HTML page.

Firstly, place  at the spot you want to link to.

Secondly, place  to create a link on the same page or if its a link from a different page, use   e.g.,.

Tooltips
Tooltips allow revealing details about a link when hovering above it with the mouse pointer:. Sites use it for previewing the meaning of abbreviations and exact time stamps of a relative time.

This can also be done for plain text with  ( demo ). For abbreviations, the dedicated  tag can be used, which browsers usually highlight with a dotted underline, and line breaks can be inserted with   (demo with line break ).

Note that these are not widely supported on mobile devices as of 2021