![]() |
Intro Browser Page Tags Elements Tables Layout Perfection
|
|
Let's continue our meditations by examining the basic structure of the page.
Every HTML page begins with a statement <HTML> that signals the browser "I'm beginning an HTML page," and ends with </HTML> that tells it "OK, I'm finished now." What you've really done is create an HTML container, and everything inside that container is meant to be displayed as a web page.
A web page has two basic parts - a head, and a body. Each of these also is a container and, as you might imagine, the head sits on top. Each of these containers is opened and closed just like the page container was: <HEAD> opens the head, and </HEAD> closes it; <BODY> opens the body, and </BODY> closes it. And that, Grasshopper, is all there is to your basic web page.
You can have a functional web page without anything inside the head (reminds me of some people I know). Usually, though, it contains a title that displays either on the bar at the bottom of the screen (on WebTV) or in the top of the browser (computers). The title is inside a title container, which is inside the head container. Here's the code for the head and title containers of the page you're reading now:
Dudette |