HTML HYPERLINKS

Websites contain different types of links that take you directly to other pages or allow to navigate to a particular part of the page. The links in HTML are called hyperlinks. They are defined using the <a href= “”>……………</a> tag.

Links are found in nearly all web pages. Links allow users to click their way from page to page. You can click on a link and jump to another document.

The most important attribute of the <a> element is the href attribute, which indicates the link’s destination.

Clicking on the link text, will send the reader to the specified URL address

To open a link in a new page, you need to add target="_blank" to your code. The target attribute specifies where exactly to open the linked page. With target="_blank" the linked page will open in a new window or in a new tab

Hyperlinks are applied to a phrase, a word or images check the examples below:

Scroll to Top