Prev

Links & Tag Attributes

URLs: Part 1

Question: What is the URL for this page?
Every page on the web has an address, such as http://amazon.com, that tells your browser where to look to find th HTML for that page. This web address is often called a URL, which stands for Uniform Resource Locater:
U = Uniform because every browser understands it
R = Resource because the web page is a resource
L = Locater because this tells the browser how to locate the page

The Anchor Tag <a>

Now you'll learn how to really make your web pages interesting! What makes the web an actual web is the fact that you can link two pages together (sometimes called a hyperlink). Anyone who has used the web before knows that there are many things you can click on, and doing often takes you to a different web page, sometimes on a different web site. The tag that allows you to do this is the <a> tag.

The "a" in <a> tag stands for "anchor", because you are anchoring something to that location in your web page. You may have noticed that most browsers display an anchor by underlining it and making it a different color, often blue.

The <a> tag is a container tag and what goes inside it is the text that you want someone reading your page to be able to click on. But there's something missing! How do you tell the browser the URL of the page where you want your reader to go when he or she clicks on the link? HTML allows you to give the browser extra information about a tag in the form of attributes.

Prev