Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1

(^102) Chapter 3 Configuring Color and Text with CSS
first “r” in the background-colorproperty. Remove the #from the colorproperty
value. Save the file.
Next, attempt to validate the color.css file. Visit the W3C CSS Validation Service page
at http://jigsaw.w3.org/css-validator and select the “by File Upload” tab. Click the
Browse button and select the color.css file from your computer. Click the Check button.
Your display should be similar to that shown in Figure 3.19. Notice that two errors
were found. The selector is listed followed by the reason an error was noted.
Figure 3.19
The validation results
indicate errors
Figure 3.20
The valid CSS is
displayed below the
errors (and warnings,
if any)

Free download pdf