- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursors
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS Advanced
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Media Types
- CSS - Paged Media
- CSS - Aural Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS3 - Rounded Corner
- CSS3 - Border Images
- CSS3 - Multi Background
- CSS3 - Color
- CSS3 - Gradients
- CSS3 - Shadow
- CSS3 - Text
- CSS3 - Web font
- CSS3 - 2d transform
- CSS3 - 3d transform
- CSS3 - Animation
- CSS3 - Multi columns
- CSS3 - User Interface
- CSS3 - Box Sizing
- CSS Responsive
- CSS - Responsive Web Design
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
CSS Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to CSS. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Which of the following selector matches a element based on its class attribute?
Answer : D
Explanation
The Class Selector matches a element based on its class attribute.
Q 2 - Which of the following defines a relative measurement for the height of a font in em spaces?
Answer : C
Explanation
em − A relative measurement for the height of a font in em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each "em" unit would be 12pt; thus, 2em would be 24pt.
Answer : B
Explanation
mm − Defines a measurement in millimeters.
Q 4 - Which of the following property is used to set the background color of an element?
Answer : A
Explanation
The background-color property is used to set the background color of an element.
Q 5 - Which of the following property is used to add or subtract space between the words of a sentence?
Answer : A
Explanation
The text-indent property is used to indent the text of a paragraph.
Q 6 - Which of the following property of a anchor element signifies visited hyperlinks?
Answer : B
Explanation
The :visited signifies unvisited hyperlinks.
Q 7 - Which of the following property of a table element controls the placement of the table caption?
Answer : C
Explanation
The caption-side captions are presented in the
Q 8 - Which of the following property changes the color of left border?
Answer : B
Explanation
The border-left-color changes the color of left border.
Q 9 - Which of the following property specifies the right margin of an element?
Answer : A
Explanation
The margin-right specifies the right margin of an element.
Q 10 - Which of the following property specifies the bottom padding of an element?
Answer : A
Explanation
The padding-bottom specifies the bottom padding of an element.