Sie sind auf Seite 1von 7

1. In CSS,select the property used to set the background color of an image?

a. background-color
b. color
c. None
d. color:background
e. background:color
2. In CSS, Select the property to set an image in a list instead of a standard bullet?
a. image-list:
b. list-image:
c. None
d. list-style-image:
e. list-image-src:
3. In CSS, what is the correct option to select only the paragraphs with class name “warning”?
<p class=”warning”>Don’t do it.</p>
<p>Do it.</p>
<p class=”warning”>Nooo, don’t do it.</p>
a. .warning { }
b. #warning { }
c. warning { }
d. p { }
e. None
4. Select the property that is used to create spacing between HTML elements?

a. spacing
b. margin
c. padding
d. border
e. None
5. Select the property that is used to change the list style to show roman numerals instead of normal
numbers?
a. list-style-type:upper-roman;
b. list-bullet-type:roman-numerals;
c. list-style:roman;
d. list-type:roman;
e. None
6.
In CSS, what is the correct option to select all the tags on a page?
a. #p { }
b. p { }
c. .p { }
d. <p> { }
e. None
7.
In CSS, Select the appropriate option to style an element so that the next element would appear
right next to it not underneath it if both elements widths were collectively smaller than the container
element?
a. display:inline;
b. display:left;
c. display:horizontal;
d. None
8.
In CSS, choose the correct option to select this image by its id?
<img id=”mainpic” src=”cat.png”>
a. .mainpic { }
b. img { }
c. None
d. mainpic { }
e. #mainpic { }
9.
Select the property used to create space between the element’s border and inner content?
a. padding
b. spacing
c. None
d. margin
e. border
10.
In CSS,Select the property used to set the spacing in between lines of text?
a. line-height
b. line-spacing
c. letter-spacing
d. spacing
e. None
11.
For users that use the tab key to navigate websites, what property represents this way of moving
from one element to another?
a. a:focus
b. a:active
c. None
d. a:link
e. a:visited
12.
Which of the following property specifies the distance between a marker and the text in the list?
a. marker-offset
b. list-style-position
c. list-style-image
d. list-style
13.
Which of the following property specifies whether a border should be solid, dashed line, double line,
or one of the other possible values?
a. :border-color
b. :border-style
c. :border-width
d. :border-bottom-color
14.
Which of the following property is used to set the width of an image?
a. border
b. height
c. width
d. -moz-opacity
15.
Which of the following property is used to add or subtract space between the letters that make up a
word?
a. color
b. direction
c. letter-spacing
d. word-spacing
16.
Which of the following property is used as a shorthand to specify a number of other background
properties?
a. background-attachment
b. background
c. background-repeat
d. background-position
17.
Which of the following uses 1vw or 1vh, whichever is smaller?
a. px
b. vh
c. vw
d. vmin
18.
Which of the following is a true about CSS style overriding?
a. Any inline style sheet takes highest priority. So, it will override any rule defined in tags or
rules defined in any external style sheet file.
b. Any rule defined in tags will override rules defined in any external style sheet file.
c. Any rule defined in external style sheet file takes lowest priority, and rules defined in this file
will be applied only when above two rules are not applicable.
d. All of the above.
19.
Which of the following property changes the color of left border?
a. :border-top-color
b. :border-left-color
c. :border-right-color
d. :border-bottom-color
20.
Which of the following property changes the color of bottom border?
a. :border-color
b. :border-style
c. :border-width
d. :border-bottom-color
21.
Which of the following property is used to capitalize text or convert text to uppercase or lowercase
letters?
a. text-indent
b. text-align
c. text-decoration
d. text-transform
22.
Which of the following property is used to add or subtract space between the words of a sentence?
a. color
b. direction
c. letter-spacing
d. word-spacing
23.
Which of the following property is used to change the face of a font?
a. font-family
b. font-style
c. font-variant
d. font-weight
24.
Which of the following defines a measurement in picas?
a. in
b. mm
c. pc
d. pt
25.
Which of the following defines a relative measurement for the height of a font in em spaces?
a. %
b. cm
c. em
d. ex
26.
Which of the following selector selects all paragraph elements whose lang attribute has a value of
exactly "fr"?
a. p[lang]
b. p[lang="fr"]
c. p[lang~="fr"]
d. p[lang|="fr"]
27.
Which of the following property specifies the left padding of an element?
a. padding-bottom
b. padding-top
c. padding-left
d. padding-right
28.
Which of the following property specifies whether a long point that wraps to a second line should
align with the first line or start underneath the start of the marker of a list?
a. list-style-type
b. list-style-position
c. list-style-image
d. list-style
29.
Which of the following property changes the style of bottom border?
a. :border-bottom-style
b. :border-top-style
c. :border-left-style
d. :border-right-style
30.
Which of the following property of a table element allows browsers to speed up layout of a table by
using the first width properties it comes across for the rest of a column rather than having to load the
whole table before rendering it?
a. :table-layout
b. :border-spacing
c. :caption-side
d. :empty-cells
31.
Which of the following property is used to capitalize text or convert text to uppercase or lowercase
letters?
a. text-indent
b. text-align
c. text-decoration
d. text-transform
32.
Which of the following property is used to underline, overline, and strikethrough text?
a. text-indent
b. text-align
c. text-decoration
d. text-transform
33.
Which of the following property is used to control the scrolling of an image in the background?
a. background-attachment
b. background
c. background-repeat
d. background-position
34.
Which of the following defines a measurement in screen pixels?
a. vh
b. px
c. vw
d. vmin
35.
Which of the following selector matches a particular element only when it lies inside a particular
element?
a. The Type Selector
b. The Universal Selector
c. The Descendant Selector
d. The Class Selector

Das könnte Ihnen auch gefallen