CSS Questions & Answers – CSS Versions

This set of CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS Versions”.

1. Which of the following is the CSS Extension Prefixes for Webkit?
a) -webkit
b) -o-
c) -web
d) -chrome
View Answer

Answer: a
Explanation: 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.

2. Which CSS property is equivalent for the attribute <center>?
a) color
b) margin
c) align
d) font
View Answer

Answer: c
Explanation: The attribute <center> 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.

3. Which CSS property is Equivalent for the align attribute?
a) float
b) text-align
c) centre
d) float & text-align
View Answer

Answer: a
Explanation: In the case of some elements such as <img>, 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.
advertisement
advertisement

4. Which is the latest version of CSS available?
a) CSS2
b) CSS3
c) CSS3.1
d) CSS4
View Answer

Answer: b
Explanation: 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.

5. Which CSS property is equivalent for the attribute <font>?
a) font-family
b) font-style
c) color
d) all of the mentioned
View Answer

Answer: b
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 <font>. Both of them either increase/decrease the font of text.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. 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
View Answer

Answer: b
Explanation: 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.

7. 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
View Answer

Answer: d
Explanation: 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.
advertisement

8. _________ 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
View Answer

Answer: d
Explanation: 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.

9. There is no single, integrated ____________________ because it is split into separate modules.
a) CSS1 specification
b) CSS2 specification
c) CSS3 specification
d) CSS4 specification
View Answer

Answer: d
Explanation: Here is no single, integrated CSS4 specification,[42] because it is split into separate modules. However, there are “level 4” modules.
advertisement

10. 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
View Answer

Answer: c
Explanation: 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.

Sanfoundry Global Education & Learning Series – CSS.

To practice all areas of CSS, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.