Text Links

Contact Us or call 1-877-932-8228
Text Links

Text Links

The tag for a link is perhaps the least intuitive of all the HTML tags. It is <a> and it comes from the word "anchor." You will see why later in the lesson. By itself, the <a> tag does nothing. To create a link, it requires the href attribute, which takes as a value the path to the file to which to link. The syntax is as follows:

Syntax

<a href="path_to_file">Link Text</a>

For example:

<a href="bios/JohnLennon.html">John Lennon</a>

Note that <a> elements may be direct children of the body element:

<body>
	<a href="http://www.webucator.com">Webucator</a>
</body>
Next