Share this Page URL

Chapter 2. Laying the Foundation: The Ba... > And Now, Some Actual HTML - Pg. 19

Laying the Foundation: The Basic Structure of a Web Page 19 And Now, Some Actual HTML Okay, you're ready to get down to some brass HTML tacks. (Halle-freakin'-lujah, I hear you saying.) You'll begin by cobbling together a few HTML tags that constitute the underlying skeleton of all web pages. Your HTML files will always lead off with the <HTML> tag. This tag doesn't do a whole heckuva lot except tell any web browser that tries to read the file that it's dealing with a file that contains HTML knickknacks. Similarly, the last line in your document will always be the corresponding end tag: </ HTML>. You can think of this end tag as the HTML equivalent for "The End." So each of your web pages will start off with this: <HTML> and end with this: </HTML> The next items serve to divide the page into two sections: the header and the body. The header section is like an introduction to the page. Web browsers use the header to glean various types of information about the page. Although a number of items can appear in the header section, the only one that makes any real sense at this early stage is the title of the page, which I talk about in the next section. To define the header, add a <HEAD> tag and a </HEAD> tag immediately below the <HTML> tag you typed in earlier. So, your web page should now look like this: <HTML> <HEAD>