True/False Indicate whether the
statement is true or false.
|
|
1.
|
Style rules express the style characteristics for an HTML element.
|
|
2.
|
You can combine selectors and property declarations in a variety of ways.
|
|
3.
|
It is not necessary to use the <style> element in an external style
sheet.
|
|
4.
|
The advantage of the external style sheet is that you can state the style rules
in one document and affect all the pages on a Web site.
|
|
5.
|
You will probably use the style attribute method of styling an element the
most.
|
|
6.
|
CSS allows comments within the <style> element, but not in an external
style sheet.
|
|
7.
|
By default, most CSS properties inherit from parent elements to child
elements.
|
|
8.
|
The difference between an id attribute and a class attribute is that an id
should refer to only one occurrence within a document.
|
|
9.
|
Rules with more specific selectors take precedence over rules with less specific
selectors.
|
|
10.
|
The !important keyword allows you to specify that a rule should take precedence
no matter what the order in the style sheet.
|
Multiple Choice Identify the
choice that best completes the statement or answers the question.
|
|
11.
|
A style rule is composed of ____ parts.
|
|
12.
|
In a style rule, the ____ determines the element to which a rule is
applied.
a. | style tag | c. | declaration | b. | selector | d. | style sheet |
|
|
13.
|
In a style rule, the ____ details the exact property values.
a. | selector | c. | style tag | b. | style sheet | d. | declaration |
|
|
14.
|
A declaration is enclosed by ____.
|
|
15.
|
In a style rule, the ____ is a quality or characteristic, such as color, font
size, or margin.
a. | value | c. | declaration | b. | selector | d. | property |
|
|
16.
|
In a style rule, a property is followed by a ____.
a. | semicolon (;) | c. | comma (,) | b. | colon (:) | d. | question mark
(?) |
|
|
17.
|
In a style rule, a value is followed by a ____.
a. | colon (:) | c. | semicolon (;) | b. | question mark (?) | d. | period (.) |
|
|
18.
|
____ is simply a text document that contains the style rules.
a. | An internal style sheet | c. | The style
attribute | b. | The <style> element | d. | An external style
sheet |
|
|
19.
|
External style sheets have a(n) ____ extension.
|
|
20.
|
The ____ element lets you establish document relationships.
a. | <style> | c. | <relate> | b. | <link> | d. | <head> |
|
|
21.
|
Style rules contained in ____ affect only the document in which they
reside.
a. | an internal style sheet | c. | the <body>
tag | b. | an inline style | d. | an external style sheet |
|
|
22.
|
CSS comments begin with ____.
|
|
23.
|
The elements in an HTML document are structured in a hierarchy of ____
elements.
a. | unrelated | c. | sibling | b. | parent and child | d. | related |
|
|
24.
|
____ elements contain nested elements called ____ elements.
a. | Child, parent | c. | Sibling, child | b. | Parent, sibling | d. | Parent, child |
|
|
25.
|
The simplest type of selector is the ____ selector.
a. | grouping | c. | type | b. | combining | d. | descendant |
|
|
26.
|
When grouping selectors, the selectors are separated by ____.
a. | semicolons | c. | periods | b. | colons | d. | commas |
|
|
27.
|
When combining declarations, the declarations are separated by ____.
a. | semicolons | c. | periods | b. | colons | d. | commas |
|
|
28.
|
The symbol for the universal selector is the ____.
a. | asterisk ( * ) | c. | period ( . ) | b. | comma ( , ) | d. | apostrophe ( ‘
) |
|
|
29.
|
The ____ selector lets you write rules, give them a name, and then apply that
name to any elements you choose.
|
|
30.
|
In a style rule,the ____ flag character indicates that the selector is a class
selector.
a. | question mark (?) | c. | semicolon (;) | b. | period (.) | d. | colon (:) |
|
|
31.
|
The ____ element can be used with the class and id attributes to create logical
divisions on a Web page.
a. | <span> | c. | <class> | b. | <div> | d. | <paragraph> |
|
|
32.
|
The ____ element lets you specify inline elements within a document that have
their own name and style properties.
a. | <span> | c. | <class> | b. | <div> | d. | <paragraph> |
|
|
33.
|
Pseudo-____ select elements based on characteristics other than their element
name, such as changing the color of a new or visited hyperlink text.
a. | elements | c. | classes | b. | attributes | d. | ids |
|
|
34.
|
The fact that style sheets ____ means that multiple style sheets and style rules
can apply to the same document.
a. | join | c. | cascade | b. | stack | d. | coincide |
|
|
35.
|
The ____ states selectors let you choose an element based on its state of user
interaction.
a. | hover | c. | W3C attributes | b. | pointer | d. | UI element |
|