HTML and CSS Reference
In-Depth Information
Hands-On Exercises
1. Write the XHTML to display your name in the largest size heading element.
2. Write the XHTML to create an absolute link to a Web site whose domain name is
google.com.
3. Write the XHTML for an unordered list to display the days of the week.
4. Write the XHTML for an ordered list that uses uppercase letters to order the item.
This ordered list will display the following terms: HTML, XML, and XHTML.
5. Think of a favorite quote by someone you admire. Write the XHTML code to dis-
play the person's name in a heading and the quote in a blockquote.
6. Modify the following code snippet to use logical style tags instead of physical style
tags.
<p>A diagram of the organization of a web site is called a
<b>site map</b> or <b>storyboard</b>. <i>Creating the <b>site
map</b> is one of the initial steps in developing a web
site.</i></p>
7. Modify the blockquote.html Web page you created in Hands-On Practice 2.5.
Configure the URL http://www.w3.org/WAI/ as a hyperlink. Save the file as
blockquote2.html. Open your file in Notepad and print the source code for the
page. Display your page in a browser and print the page. Hand in both printouts to
your instructor.
8. Create a Web page that uses a definition list to display three network protocols (see
Chapter 1) and their descriptions. Include a hyperlink to a Web site that provides
information about the protocols. Add an appropriate heading to the page. Save the
page as network.html. Open your file in Notepad and print the source code for the
page. Display your page in a browser and print the page. Hand in both printouts to
your instructor.
9. Create a Web page about your favorite musical group. Include the name of the
group, the individuals in the group, a hyperlink to the group's Web site, your
favorite three (or fewer if the group is new) CD releases, and a brief review of each
CD.
Use an unordered list to organize the names of the individuals.
Use a definition list for the names of the CDs and your reviews.
Save the page as band.html. Open your file in Notepad and print the source code
for the page. Display your page in a browser and print the page. Hand in both
printouts to your instructor.
10. Create a Web page about your favorite recipe. Use an unordered list for the ingredi-
ents and an ordered list to describe the steps needed to prepare the food. Include a
hyperlink to a Web site that offers free recipes. Save the page as recipe.html. Open
your file in Notepad and print the source code for the page. Display your page in a
browser and print the page. Hand in both printouts to your instructor.
 
Search WWH ::




Custom Search