You are here:    Home » KidSpace » Learning HTML

KidSpace Home

Ask a Question

Subjects

Reference
The World
Computers
Health & Nutrition
Reading Zone
Math & Science
Art & Music
Sports & Rec.
Fun Stuff

Features

Science Fair
Stately Knowledge
Learning HTML
Orca Search
Poison Prevention
Author Page
Culture Quest
Story Hour
Say Hello
U.S. Presidents

Valid XHTML 1.0 Transitional

Valid CSS!

Got a question? Ask our Ask a Question librarians!
(Use our Contact Us form for questions/suggestions about our site.)

Links

You will probably have more than one page to your website. And, most likely you will want to make a homepage and then create links to all the other pages of your website. To do this, you use the same pair of anchor tags, <a></a>, and the href attribute, as we did in the previous example where we made a link to the Internet Public Library:

<a href="http://www.ipl.org/" >Internet Public Library </a>

What's different this time is that you do not need to use the URL for the value. Instead, you will use the filename for the page that you want to link to. Remember that the filename is simply what you named your HTML document when you saved it to your computer's harddrive. For example, Fred.html.

Now, say for instance, that you want to make a link to Fred.html from your homepage. All you would have to do is type the following HTML into your homepage document:

<html>
<head>
<title>Homepage</title>
</head>
<body>
<a href="Fred.html">Go to Fred.html</a>
</body>
</html>

Just keep experimenting with the tags and you will get the hang of it. right arrow

This resource originally created by Deborah Dunk.
Revised and edited by Michael Galloway in 2005 & in 2006.

Updated on 28 Nov 2006
 
School of Information University of MichiganThe iSchool at DrexelFlorida State University College of Information
 
© 1995-2008 The Regents of the University of Michigan. All rights reserved.
© 2008, Drexel University, All Rights Reserved