I.Which of the
following statements about style sheets are true and which are false ?
1.Cascading Style
Sheets derived the term cascade from the ability to mix and match rules from
diffrent sources
True (v) False
2.Cascading Style
Sheets lack support to define spacing between data.
True False
(v)
3.A CSS style sheet si
associated with an XML document using the processing instruction
xml-stylesheets.
A.True (v) B.Flase
4.Style sheets allow
you to mix presentation markup with data.
A.True B.Flase(v)
5.Style sheets contain
one or more rules about the appearance of data
A.True(v) B.False
II.Which of the
following statements about selector are true and which are false ?
1.Simple selectors
match occurrence of an element based on a condition.
A.True B.Flase(v)
2.ID selectors are
used to define style rules for unique elements.
A.True(v) B.False
3.In simple selectors
you define same property declarations for multiple elememts by specifying a
comma separated list of element names.
A.True(v) B.False
4.ID selector match
elements which have an id attribute.
A.True(v) B.False
5.Universal selectors
match every occurrence of parent and child elements
A.True B.Flase(v)
III.Can you match the
properties with the conrresponding descriptions ?
1.To display an element's data in italics. -> font-style
2.To display an element's data in bold. -> font-weight
3.To display an element's data in a small font. ->
font-size: small
4.To display an element's data in Times New Roman. ->
font-family
5.To display an element's data a big font. -> font-size
IV.Can you match the
properties with the conrresponding descriptions ?
6.To insert space around an element. -> margin
7.To insert space between the text and border of element's
box. -> padding
8.To display an outline around the element's data. ->
border
9.To place element' data at the specified location. ->
possition
10.To place element's data in the center. -> text-align
V.Which of the
following statements about cascading and inheritance are true and which are
false ?
1.Declarations are
sorted by weight and origin
A.True(v) B.False
2.Inheritance enables
one entity to acquire the properties of another entity
A.True(v) B.False
3.A child element
inherits the properties of an ancestor element only if it is an immediate
child.
A.True B.Flase(v)
4.Declarations are
sorted by the order specified
A.True(v) B.False
5.There is always only
one style rule defined for every element.
A.True B.Flase(v)
0 nhận xét:
Đăng nhận xét