Answers^643
Chapter 7
Checkpoint 7.1
- Organizing a Web site into folders can help increase productivity by organizing
the files into file type (such as images or media), file function (Web page or
script), and/or Web site section (products, services, and so on). Using folders and
subfolders can be helpful when a project team (see Chapter 10) is developing a
large Web site. - Since a navigation menu is a list of links, it is semantically correct to configure the
menu using an unordered list. This technique is popular among Web developers. - There are a number of approaches to handle this. One approach is to create a
special class and configure the pseudo-classes for use with that class. Apply this
class to the navigation links. This will allow the “regular” anchor tags to use the
default configuration and the navigation anchor tags (using the class) to use the
special configuration. In the following example, the class intended for the naviga-
tion links is called nav.
.nav { border: 1px solid #cccccc;
padding: 3px 15px;
width: 100px;
color: #FFFFFF;
background-color: #006600;
font-family: Arial, Helvetica, sans-serif;
font-size: 110%;
font-weight: bold;
text-align: center;
text-decoration: none;
}
a.nav:link { color : #FFFFFF; }
a.nav:visited { color : #CCCCCC; }
a.nav:hover { color : #66CC33; }
The XHTML for a navigation link is as follows:
Services
Checkpoint 7.2
- The Web developer has the best of both worlds—the ability to configure both
print and screen media. - Configure the XHTML selector if the style is expected to be applied every time
that element is used. Configure an id if the style is for a specific element that is - c
- b
- id
- left
- margin
- left, right, top
- class