Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1

(^30) Chapter 2 XHTML Basics
Click the Save button after you type the file name. Sample solutions for the Hands-On
Practice exercises are available in the student files. If you would like, compare your
work with the solution (Chapter2/hello.html) before you test your page.
Test Your Page
There are two ways to test your page as follows:



  1. Launch Windows Explorer.Navigate to your hello.html file. Double-click
    hello.html. The default browser will launch and will display your hello.html page.
    Your page should look similar to the one shown in Figure 2.3.

  2. Launch a Browser.(If you are using Internet Explorer 8, select Tools, Menu Bar.)
    Select File, Open, Browse, My Computer, and then select your drive. Double-click
    hello.html and click OK. If you used Internet Explorer, your page should look
    similar to the one shown in Figure 2.3. A display of the page using Firefox is
    shown in Figure 2.4.


Figure 2.3
Web page displayed
by Internet Explorer


Figure 2.4
Web page displayed
by Firefox


Examine your page. Look carefully at the browser window. Notice how the title bar of
the browser window contains the title text, “My First Web Page.” Some search engines
need the text surrounded by the <title>and </title>tags to help determine rele-
vancy of keyword searches, so make certain that your pages contain descriptive titles.
The <title>tag is also used when viewers bookmark your page or add it to their
Favorites. An engaging and descriptive page title may entice a visitor to revisit your
page. If your Web page is for a company or an organization, it’s a good idea to include
the name of the company or organization in the title.
You might be thinking “Hmmm ... white background, black text, no images, can’t we
make the page look more interesting?” Sure we can. That’s what you’ll begin to learn in
the next section.
Free download pdf