| Get your FREE home page! |
| Lesson 1: Your First Page |
| Start Here | Lesson 1 | Lesson 2 | Lesson 3 |
|
Step 1: What a tag is A Web page is nothing but a plain text file with some instructions mixed in. The instructions are called tags, and every tag sits between two angle brackets, the less-than and greater-than signs on your keyboard (hold Shift and press the comma or period key). Here is a tag that means "start making words bold":
And here is the tag that means "stop making words bold." It's the same, with a slash in front:
Most tags come in pairs like that, an opening tag and a closing tag, and whatever you put between them is what they work on. So <b>Hello</b> comes out as Hello. The browser reads the tags, follows them, and doesn't show them to your visitors. That's really the whole idea. Everything else is learning which tags there are. Step 2: Open Notepad Click the Start button, then Programs, then Accessories, then Notepad. On a Macintosh, open SimpleText. Please don't use Word or WordPerfect for this; they add invisible formatting of their own, and the browser chokes on it. Step 3: Type the skeleton Every Web page has the same six tags holding it up. Type this in, exactly, line for line:
Here's what each part does:
Capital or small letters in tags doesn't matter; <BODY> works just the same. I use small letters because they're easier to type. Step 4: Save it the right way This is the step where half my class gets tripped up the first night, so go slowly.
Why step 3? If you leave it on Text Documents, Notepad helpfully sticks .txt on the end, and you end up with index.html.txt, which is a text file and not a Web page. Worse, Windows usually hides the last part of file names, so it looks right and isn't. Another way around it is to type the name with quote marks around it, "index.html", which tells Notepad to leave it alone. Why index.html? Because on GeoCities.us, the page named index.html is the one people see first when they type your address. It's your front door. Name it anything else and people who type your address won't find it. Step 5: Look at it Now open your browser. You don't have to be connected to the Internet for this.
You should see this:
And "My First Page" in the bar across the top of the window. Congratulations. You have written a Web page. My students usually clap at this point, and so should you. Step 6: Change it and reload Leave both windows open. Go back to Notepad, change the words between the body tags to anything you like, and click File, Save. (Just Save now, not Save As.) Then go to the browser and click Reload in Netscape or Refresh in Internet Explorer. Your change appears. Type, save, reload. Type, save, reload. That's the rhythm of making Web pages, and you'll do it a thousand times. Leah, who is seventy-one, says it's like knitting: once your hands know the stitch, you stop thinking about it.
|
|
Start Here |
Lesson 1 |
Lesson 2 |
Lesson 3 Stuck? [email protected] · Last updated: September 21, 1999 |