External HTML Links

External HTML links are links which take the user to a different website from yours entirely. In order to use them you need to put the full website address in the link href section. This should include the bits at the start of the web address, such as http:// and www.

As an example, let's create a link to the Google search engine. We would use the following code:

<html>

<body>

<a href="http://www.google.com">Click here to go to Google</a>

</body>
</html>

That's all there is to it! If you save the HTML and open it you will see a link that looks something like this:

We can also add some title text to give the user a bit more information about the link before they click it. Note in the following example that the link has been split over a couple of lines to make it easier for us to read. This makes no difference to the way it is seen by a web browser.

<html>

<body>

<a href="http://www.google.com"
title="Google is one of the world's most popular search engines">
Click here to go to Google</a>

</body>
</html>

If you view this HTML file you should see something like this:

Note that if you hover over the link for a short while, the title text is displayed.