Whether a link has been visited, hasn’t been visited, or is live, it
will be displayed in a different color.
Link Colors in HTML
In all browsers, a link will often look like this by default:
- An unclicked link is highlighted in blue
- A clicked link is highlighted in purple.
- A link that is active is highlighted in red.
Using CSS, you may alter the link state colors:
An unclicked link will be orange and ununderlined in this instance. Links
that have been visited will be red and not underlined. A link that is active
will be highlighted in green. In addition, a link will turn blue and be
highlighted when you mouse over it (a:hover):
Make an HTML bookmark.
To enable users to quickly navigate to particular sections of a web page,
HTML links can be used to construct bookmarks.
If a web page is lengthy, bookmarks may be helpful.
Make the bookmark first, then connect to it to create a bookmark.
The page will scroll down or up to the spot marked by the bookmark when the
link is clicked.
First, make a bookmark using the id attribute. Then, from the same page,
add a link to the bookmark that says, “Jump to Chapter 4”, Adding a link to
a bookmark on another website is another option.
To define bookmarks on a page, use the id attribute (id=”value”).
Use the href property to link to the bookmark (href=”#value”).