Now you can listen to this article with the Online Text Reader

How to make a link in HTML

In order to show a text leading to a web page in HTML, we must use the href attribute of the <a> tag, as we can observe in the following example.

Let's suppose we want to make a link to the main page of this blog. In that case, we should write the following code:

<a href="">Rom Cartridge - Technology Explained</a>

The text marked in green indicates the address to which the link is directed, and it can be replaced by the address of any other web page you want to link to. The text marked in red is the one presented to the user for him to click on.

The result of the previous code is as follows:

Rom Cartridge - Technology Explained

This is the way in which all the text links are made when writing web pages in HTML.

© Copyright 2010-2018 ROM Cartridge

Books to Read and Listen to Online