HTML links are hyperlinks.
You can click on a link and jump to another document.
When you move the mouse over a link, the mouse arrow will turn into a little hand.
A link does not have to be text. It can be an image or any other HTML element.
Links are found in nearly all web pages. Links allow users to click their way from page to page.
The href attribute specifies the destination address (https://www.planetaryhtml.com) of the link.
The link text is the visible part (Visit our HTML tutorial).
Clicking on the link text will send you to the specified address.
Without a forward slash on subfolder addresses, you might generate two requests to the server. Many servers will automatically add a forward slash to the address, and then create a new request.
Inserting a link
The example above used an absolute URL (A full web address).
A local link (link to the same web site) is specified with a relative URL (without http://www....).
Inserting a local
HTML Links - Image as Link
It is common to use images as links.
Inserting a image link
HTML Links - Bookmarks
HTML bookmarks are used to allow readers to jump to specific parts of a Web page.
Bookmarks can be useful if your webpage is very long.
To make a bookmark, you must first create the bookmark, and then add a link to it.
When the link is clicked, the page will scroll to the location with the bookmark.