
Q1 . 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
Show Answer
Answer:-B. text-decoration: overlineExplanation
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 2. 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
Show Answer
Answer:-D. CSS level 1Explanation
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 3. _________ 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
Show Answer
Answer:-D. CSS level 2.1Explanation
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 4. There is no single, integrated ____________________ because it is split into separate modules.
A. CSS1 specification
B. CSS2 specification
C. CSS3 specification
D. CSS4 specification
Show Answer
Answer:-D. CSS4 specificationExplanation
Here is no single, integrated CSS4 specification,[42] because it is split into separate modules. However, there are “level 4” modules.Q 5. 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
Show Answer
Answer:-C. CSS level 3Explanation
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.Q 6. Which is the latest version of CSS available?
A. CSS2
B. CSS3
C. CSS3.1
D. CSS4
Show Answer
Answer:-B. CSS3Explanation
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 7. Which CSS property is equivalent for the attribute <font>?
A. font-family
B. font-style
C. color
D. all of the mentioned
Show Answer
Answer:-B. font-styleExplanation
Explanation: 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 8. Which of the following is the CSS Extension Prefixes for Webkit?
A. -webkit
B. -o-
C. -web
D. -chrome
Show Answer
Answer:-A. -webkitExplanation
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 9. Which CSS property is equivalent for the attribute <center>?
A. color
B. margin
C. align
D. font
Show Answer
Answer:-C. alignExplanation
The attributeQ 10. Which CSS property is Equivalent for the align attribute?
A. float
B. text-align
C. centre
D. float & text-align
Leave a Reply