Test Series - css

Test Number 4/59

Q: Which of the following is the CSS Extension Prefixes for Webkit?
A. -webkit
B. -o-
C. -web
D. -chrome
Solution: Browser sometimes adds prefixes to non-standard CSS properties. CSS Extension prefix for Webkit is -webkit which is supported by almost all ios browsers. -o is used by opera where as -moz is used by firefox browser.
Q: Which CSS property is equivalent for the attribute 
?
A. color
B. margin
C. align
D. font
Solution: The attribute 
in html aligns the text in center. In CSS, this is equivalent to align property which can align text to right, left or center as per the value. Margin property sets the margin for an element. Color property is used to set/assign colour to element. Font property is for increasing/decreasing the font of text.
Q: Which CSS property is Equivalent for the align attribute?
A. float
B. text-align
C. centre
D. float & text-align
Solution: In the case of some elements such as , the CSS float property is more appropriate than text-align. text-align. Center attribute can only align text to center. Now-a-days it is not supported.
Q: Which is the latest version of CSS available?
A. CSS2
B. CSS3
C. CSS3.1
D. CSS4
Solution: There are three different kinds of versions of CSS i.e CSS1, CSS2 and CSS3. Out of them CSS3 is the latest version to be used.
Q: Which CSS property is equivalent for the attribute ?
A. font-family
B. font-style
C. color
D. all of the mentioned
Solution: Both font-style and font-family are for styling the text. They show text in different kinds of styles. Color is for setting/assigning colour to text or element. The font-size property in CSS is equivalent to attribute . Both of them either increase/decrease the font of text.
Q: Which of the following CSS property is used to give a line over the text?
A. text-decoration: underline
B. text-decoration: overline
C. text-decoration: line-through
D. text-decoration: none
Solution: Text-decoration is a CSS property used to decorate the text. The text-decoration property takes many values such as overline, underline, line-through, none, inherit, etc. Overline gives a line over the text. Underline value is used to add line under the text. None value defines a normal text. When one wants to give a line through the text, line-through value for text-property can be used.
Q: The first CSS specification to become an official W3C Recommendation is ___________
A. (X)HTML CSS
B. CSS level 2
C. CSS level 2.1
D. CSS level 1
Solution: The first CSS specification to become an official W3C Recommendation is CSS level 1, published on December 17, 1996. Håkon Wium Lie and Bert Bos are credited as the original developers.
Q: ________ first became a Candidate Recommendation on February 25, 2004, but it was reverted to a Working Draft on June 13, 2005 for further review.
A. CSS level 1
B. CSS level 2
C. CSS level 3
D. CSS level 2.1
Solution: CSS level 2 revision 1, often referred to as “CSS 2.1”, fixes errors in CSS 2, removes poorly supported or not fully interoperable features and adds already implemented browser extensions to the specification. To comply with the W3C Process for standardizing technical specifications, CSS 2.1 went back and forth between Working Draft status and Candidate Recommendation status for many years. CSS 2.1 first became a Candidate Recommendation on February 25, 2004, but it was reverted to a Working Draft on June 13, 2005 for further review.
Q: There is no single, integrated ____________________ because it is split into separate modules.
A. CSS1 specification
B. CSS2 specification
C. CSS3 specification
D. CSS4 specification
Solution: Here is no single, integrated CSS4 specification,[42] because it is split into separate modules. However, there are “level 4” modules.
Q: Unlike CSS 2, which is a large single specification defining various features?
A. CSS level 1
B. CSS level 2
C. CSS level 3
D. CSS level 2.1
Solution: Unlike CSS 2, which is a large single specification defining various features, CSS 3 is divided into several separate documents called “modules”. Each module adds new capabilities or extends features defined in CSS 2, preserving backward compatibility.

You Have Score    /10