Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1
Chapter Summary

This chapter introduced Cascading Style Sheet rules associated with color and text on Web pages. There is
much more that you can do with CSS: positioning, hiding and showing page areas, formatting margins, and
formatting borders. As you continue your study of Web development with this textbook, you will study these
additional uses. To learn more about CSS, check out the tutorials at http://echoecho.com/css.htm and
http://www.w3schools.com/css/, or visit the W3C site for official specifications.
Visit the textbook Web site at http://www.webdevfoundations.net for examples, the links listed in this chap-
ter, and updated information.

Key Terms

<div>
<link />
<span>
<style>
background-colorproperty
Cascading Style Sheets (CSS)
classattribute
classselector
colorproperty
CSS validation
declaration
em unit
embedded styles

external styles
font-familyproperty
font-sizeproperty
font-styleproperty
font-weightproperty
hexadecimal color values
idattribute
idselector
imported styles
inline styles
line-heightproperty
margin-leftproperty
margin-rightproperty

pixels
point
property
relattribute
RGB color
rule
selector
styleattribute
text-alignproperty
text-decorationproperty
typeattribute
Web Safe Color Palette
widthproperty

Review Questions

Multiple Choice


1.Which of the following can be a CSS selector?
a. an XHTML element
b. a class name
c. an id name
d. all of the above
2.Which of the following is the CSS property used
to set the background color of a Web page?
a.bgcolor
b.background-color
c.color
d. none of the above

3.Which type of CSS is coded in the body of the
Web page as an attribute of an XHTML tag?
a. embedded
b. inline
c. external
d. imported
4.Which of the following describe two components
of CSS rules?
a. selectors and declarations
b. properties and declarations
c. selectors and attributes
d. none of the above

104
Free download pdf