HTML and CSS Reference
In-Depth Information
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.
external styles
font-family
property
font-size
property
font-style
property
font-weight
property
hexadecimal color values
id
attribute
id
selector
imported styles
inline styles
line-height
property
margin-left
property
margin-right
property
pixels
point
property
rel
attribute
RGB color
rule
selector
style
attribute
text-align
property
text-decoration
property
type
attribute
Web Safe Color Palette
width
property
<div>
<link />
<span>
<style>
background-color
property
Cascading Style Sheets (CSS)
class
attribute
class
selector
color
property
CSS validation
declaration
em unit
embedded styles
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
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
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
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
Search WWH ::
Custom Search