HTML and CSS Reference
In-Depth Information
8. After the document passes XHTML 1.0 strict, add the W3C XHTML 1.0 icon to the
bottom of the page directly below the address element. Save your changes, and
then view the page in your Web browser to ensure that it still looks like Figure 9-28.
9. Submit your completed files to your instructor, in either printed or electronic form,
as requested.
Case Problem 1
Use the skills
you learned in
this tutorial to
convert an online
menu to XHTML
format.
Data files needed for this case Problem: breakfst.jpg, breaktxt.htm, dinner.jpg,
dinnrtxt.htm, dtd_list.txt, kdstylestxt.css, lunch.jpg, lunchtxt.htm, tan.jpg
Kelsey's Diner You've been asked to update legacy Web pages for Kelsey's Diner, a
popular restaurant in Worcester, Massachusetts. Cindy Towser, the manager of the diner,
would like the pages that display her breakfast, lunch, and dinner menus updated so that
they comply with XHTML standards under the strict DTD. A preview of one menu page
is shown in Figure 9-29.
figure 9-29
Kelsey's Diner breakfast menu
Complete the following:
1. Use your text editor to open the breaktxt.htm , lunchtxt.htm , dinnrtxt.htm , and
kdstylestxt.css files from the tutorial.09\case1 folder. Enter your name and the date
in the comment section of each file, and then save the files as breakfast.htm , lunch.
htm , dinner.htm , and kdstyles.css , respectively, in the same folder.
2. Go to the breakfast.htm file in your text editor, and then insert an XML prolog at the
top of the file. Set the XML version to 1.0 and the encoding type to UTF-8.
3. After the XML prolog, insert a DOCTYPE declaration for the XHTML 1.0 strict DTD.
4. Set the default namespace of the document to the XHTML namespace.
5. Add a link to the kdstyles.css style sheet.
 
Search WWH ::




Custom Search