You are on page 1of 4

1.

The following syntax to set margin around a paragraph will


make- p{margin:10px 2%}
A) The top and bottom margin will be 10px and the left and
right margin will be 2% of the total width.
B) Left and right margin will be 10px and top and bottom
margin will be 2% of the total height
C) Top margin will be 10px and other margins will be 2% of the
total width
D) Left margin will be 10px and other margins will be 2% of the
total width

2. The …………………. property allows you to control the shape or


style of bullet point in the case of unordered lists, and the style
of numbering characters in an ordered list.
A) list-style-type
B) list-style-layout
C) list-type-style
D) list-type

3. The ……………………. property allows specifying the distance


between the list and the text relating to the list.
A) list-spacing
B) marker-spacing
C) marker-offset
D) list-offset

4. The …………………. property allows specifying how much


space appears between the content of an element and its
border.
A) Spacing
B) Marking
C) Padding
D) Content-border

5. State True or False for CSS outlines properties.


i) An outline does take up space
ii) Outline does not have to be rectangular.
iii) An outline is always the same on all sides.
A) i-True, ii-True, iii-False
B) i-False, ii-False, iii-True
C) i-True, ii-False, iii-True
D) i-False, ii-True, iii-True

Ads by optAd360

Table of
Contents

READ ALSO: SOLVED MULTIPLE CHOICE


QUESTIONS ON BASIC CSS

6. The overflow property in CSS can take one of the following


values.
i) visible ii) hidden iii) scroll iv) non-scroll v) auto
A) i, ii, iii and iv only
B) i, ii, iii and v only
C) i, ii, iv and v only
D) All i, ii, iii, iv and v

7. Which of the following is/are the valid syntax for CSS


pseudo-classes.
A) selector: pseudo-class{property: value}
B) selector.class: pseudo-class{property:value}
C) Both A and B
D) None of the above

8. The valid examples of ID selectors is/are


A) #black{color: #000000;}
B) h1 #black{color: #000000;}
C) #black h2{color: #000000;}
D) All of the above

9. Which of the following is/are the possible values of


CSS pseudo element property?
i) : first line ii) : last-line iii) : before iv) : after v) : between
A) i, iii and iv only
B) i, ii, and v only
C) i, ii, iv and v only
D) All i, ii, iii, iv and v

10. The …………… rule is used to make sure that the property
always is applied whether another property appears in CSS.
A) @important
B) #important
C) !important
D) !first

ANSWERS:

1.  A) Top and bottom margin will be 10px and the left and right
margin will be 2% of the total width.
2.  A) list-style-type
3.  C) marker-offset
4.  C) Padding
5.  D) i-False, ii-True, iii-True
6.  B) i, ii, iii and v only
7.  C) Both A and B
8.  D) All of the above
9   A) i, iii and iv only
10 C) !important

You might also like