html text links

HTML

HTML Anchors Links

.

To move from one document to another or from one web site to another we have to have links.
The code below produces a link to a web page and if you click on that link you will go to that page.

This HTML Code Produces This
<a href="links.html">Anchors and Links</a> Anchors and Links

<a is the anchor tag. The HREF ( Hypertext REFerence ) indicates the page or URL ( Universal Resource Locator ) being linked to and and makes the anchor into a link to the page "links.html".

If you wish to link to another website you just need to have the link point to the name or specific page on that website.

Also we've added a new command target="_blank" in our HTML code. This will open the page in a new window allowing the current window to remain open.

This HTML Code Produces This
<a href="http://www.linkstoall.com" target="_blank">Linkstoall.com</a> Linkstoall.com

There you have it. You can now take the HTML code for linking pages and add it to our code for a basic web site we can make a simple navigation menu like this;

This HTML Code Produces This
<html>
<head>
<title> Basic Web Page </title>
</head>
<body>
Welcome to a basic web page.

<p><a href="hyper.html">HTML Basics</a>
<br><a href="links.html">Links</a>
<br><a href="tables.html">Tables</a>
</body>
</html>

Welcome to a basic web page

HTML Basics
Links
Tables

To create our menu we introduced the <p> and <br> tags.

The <p> tag defines a paragraph and inserts a space.

<br> tag inserts a BReak in the text and starts a new line.

.

Home | About | Contact Us | Sitemap

HTML text links