| Get your FREE home page! |
| Lesson 3: Links and Pictures |
| Start Here | Lesson 1 | Lesson 2 | Lesson 3 |
|
Links are what make it a Web. This is my favorite lesson to teach, because it's the night the pages stop being documents and start going places. Linking to your own pages Make a second page in Notepad, with the same skeleton from Lesson 1, and save it in your webpage folder as hobbies.html. Now, on your index.html, type:
Save, reload, and "My Hobbies" turns blue and underlined. Click it and you're on your second page. a stands for "anchor," and href is the address it goes to. The words between the tags are what people click on. Make those words say where the link goes: "My Hobbies," not "click here." Put a link back to index.html on the hobbies page, too. Every page should have a way home. A visitor with no way back is a visitor who leaves. Linking to other people's pages If the page is somewhere else on GeoCities.us, you can start the address with a slash and leave off the rest. This goes to the GeoCities.us clip art library:
For a page on some other computer entirely, you put its whole address between the quote marks, exactly the way you'd type it into your browser, http:// and all. Copy it from your browser's address box so you don't make a typo. An e-mail link
When someone clicks it, their e-mail program opens with your address already filled in. Put your own address after mailto:, with no spaces. Try mine, if you like. I answer. Putting a picture on your page Pictures use the <img> tag, which has no closing tag. The GeoCities.us clip art library has pictures you can use without uploading anything, like this cat:
For your own pictures, save them as .gif or .jpg files in your webpage folder, and put just the file name in the src, like src="garden.jpg". Keep file names short, all small letters, and with no spaces. Scanned photographs belong in .jpg; drawings and clip art in .gif. And please shrink big photographs down in your picture program before you use them. A photograph straight off a scanner can take two minutes to load over a modem, and nobody waits two minutes. A picture that's a link Put the <img> tag where the words would go:
border="0" stops the browser from drawing a blue box around the picture. Moving in: putting your pages on GeoCities.us So far your pages have lived only on your own computer. To put them on the Web:
If something shows up as a broken picture or a link says "not found," nine times out of ten it's capital letters. On your own computer, Garden.JPG and garden.jpg are the same file. On the GeoCities.us computers they are two different files. Make the name in your tag match the name of the file exactly. That's why I tell everybody: small letters, always. Where to go from here You now know enough HTML to make a real home page, and I mean that. When you're ready for more, here's what I tell my graduates:
|
|
Start Here |
Lesson 1 |
Lesson 2 |
Lesson 3 Stuck? [email protected] · Last updated: September 21, 1999 |