Okay, so now we have a boring white page. Cool. Now we want to actually show something in it. Lets break down what we have so far:
We have the outer HTML tags:
<html>
</html>
This tells the browser, “This is a web page”. It’s kind of like starting every sentence with “I’m speaking English”, its pretty unnecessary and will get ignored, but include them anyway.
Next, we have the head tags, which are holding the title tags:
<head>
<title></title>
</head>
The head holds lots of important things that will be explained later (especially when we get into CSS and JavaScript), but for now, we are only concerned with the title. What does it do? Notice how the top of your web browser says “Horror.com – Talk about horror” or something similar? That’s the title. That’s is what it does. Nothing else. But that is pretty cool, right? If you put something in the Title tags, it shows up in the title bar of the browser.
For the record, it will not display images or formatting, so you cant italicize the title or anything fun like that.
Finally, we have the body tags:
<body>
</body>
This is where “everything else” (otherwise known as “content”) goes. This is where every other tutorial in existence has you type in “Hello World!”. Not me though. Type in something else; anything else. Try cutting and pasting this into your HTML page:
<html>
<head>
<title>This is my kick-ass page title!!!</title>
</head>
<body>
My page has a hot body.
</body>
</html>
Yes, it’s very immature. Complain to someone who cares. Otherwise, enjoy my sparkling wit.
|