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="http://romcartridge.blogspot.com">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-2016 ROM Cartridge