Share this Page URL

Chapter 2. Laying the Foundation: The Ba... > Fleshing Out Your Page with Text - Pg. 21

Laying the Foundation: The Basic Structure of a Web Page 21 Figure 2.1 shows this document loaded into the Windows version of Internet Explorer. Notice how the title appears in the window's title bar. Figure 2.1. Most Windows web browsers display the title in the title bar (duh). Title Do's and Don'ts Here are a few things to keep in mind when thinking of a title for your page: · Do make sure your title describes what the page is all about. · Don't make your title too long. If you do, the browser might chop it off because there's not enough room to display it in the title bar. Fifty or sixty characters are usually the max. · Do use titles that make sense when someone views them out of context. For example, if some- one really likes your page, that person might add it to his or her list of favorites or bookmarks (hey, it could happen). The browser displays the page title in the favorites list, so it's important that the title makes sense when that person looks at the bookmarks later on. · Don't use titles that are cryptic or vague. Titling a page "Link #42" or "A Page" might make sense to you, but your readers might not appreciate it. Fleshing Out Your Page with Text With your page title firmly in place, you can now think about putting some flesh on your web page's bones by entering the text you want to appear in the body of the page. For the most part, you can simply type the text between the <BODY> and </BODY> tags, like so: <HTML> <HEAD> <TITLE>My Home Sweet Home Page</TITLE> </HEAD> <BODY> This text appears in the body of the Web page. </BODY> </HTML> Before you start typing willy-nilly, however, there are a few things you should know: