CSS 3 Test Questions
CSS 3 Test Questions
1 Margin
2 Padding
3 Content
a. All 1, 2, and 3
b. Only 1 and 2
C. Only 1 and 3
d. Only 2 and 3
Which of the following declarations can be used to cover the whole background?
a.body
background: red url("test.gif");
background-repeat: repeat-y;
background-attachment: fixed;
b.body{
background: red url("test.gif");
background-repeat: repeat-x;
background-attachment: fixed;
C.body
background: red url("test.gif");
background-repeat: no-repeat;
background-attachment: fixed;
d.body
background: red url("test.gif");
background-repeat: repeat;
background-attachment: fixed;
e.body{
background-image: url("test.gif");
background-repeat: space;
Which of the given user interface properties is/ are supported by CSS3?
1. resize 2. outline-offset
a.Only 1
b.Only 2
C.Both 1 and 2
d.Neither 1 nor 2
If you want to create a dropdown menu to go from right to left, instead of left to right,
then which of the following options will help you to achieve that?
a.style="left;
b.style="left:0;
C.style="right:0;
Which of the following is the valid option that can be used to remove underlines from the
links in CSS3?
а.text-underline: none;
b.text-formatting: none;
C.text-decoration: none;
Which of the following CSS functions can be used to insert the value of a custom
property?
a.val()
b.var()
C.attr()
d.hsl()
A
a.animationname
b.kevframes-selector
C.css-styles
d.None of the above.
Which of the following option does NOT exist in media groups available in CSS3?
а.continuous or paged
b.visual or tactile
C.grid or bitmap
d.braille or screen
a. Explicit grid
b. Natural grid
C. Default grid
d. None of the above
Which of the following options is not the valid CSS background property?
а.background-color
b.background-repeat
C.background-position
d.background-picture
а.font-weight:100
b.font-weight:900
C.font-weight:400
d.font-weight:700
a.It selects every element whose href attribute value ends with "pdf"
b.It selects every element whose href attribute value starts with "pdf."
C.It selects the first element whose href attribute value ends with " pdf".
d.It selects the first element whose href attribute value starts with "pdf".
C
a.Red
b.Green
C.Blue
d.Black
In CSS3, which of the given properties can be used to change the text direction of an
element?
1. direction 2. unicode-bidi
а.Only 1
b.Only 2
c.Both 1 and 2
d.Neither 1 nor 2
backface-visibility:hidden; will this property hide the back side when an element is
rotated?
a.Yes
b.No
In CSS3, which of the given are the valid values of the font-style property?
4 normal
5 italic
6 oblique
a.All 1, 2, and 3
b.Only 1 and 2
C.Only 1 and 3
d.Only 2 and 3
If you are using the white-space-collapse property with value collapse, what will be the
output of the following string?
a. John leads his team to the victory but fails to reach the finals.
b. John leads his team to the victory but fails to reach the finals.
C. John leads his team to the victory but fails to reach the finals.
d. John leads his team to the victory but fails to reach the finals.
Which of the following is the initial value for the column-fill property?
a. auto
b.balance
C.none
a.0
b.1
c.5
d. None
a.object-rotation: -30deg
b.rotate-object: -30deg
C.transform: rotate(-30deg)
d.transform: rotateobject(-30deg)
Which of the following value of the white-space property will set the value of white-
space-collapse to "preserve" and value of the text-wrap to "none"?
а.normal
b.pre
C.nowrap
d.pre-wrap
e.pre-line
If you set the value of the speak property to digits, how would 22 be spoken?
a.twenty two
b.two two
C.twenty and two
d.four
What is the default value of the text-align property for Left to Right Languages?
а.start
b.end
C.left
d.right
e.center
f.justify
B
In relation to @font-face rule in CSS3, which of the following font descriptors are
mandatory?
a.font-family
b.font-style
C.scr
d.font-stretch
To which of the following elements can the min-width property not be applied?
a.button
b.span
C.table row