CSS Mastery: 10 Multiple-Choice Questions to Test Your Knowledge.

Introduction

Top 10 M.C.Q:- Questions and Answers for improving and understanding CSS Style Sheet. Learn and Understand CSS Style Sheet like Pro.

1. Question: What does CSS stand for?

A. Creative Style Sheets

B. Computer Style Sheets

C. Cascading Style Sheets

D. Colorful Style Sheets

Correct Answer: C

2. Question: Which CSS property is used to change the color of text?

A. text-color

B. font-color

C. color

D. text-style

Correct Answer: C

3. Question: In CSS, which selector targets all elements of a specific type?

A. .class

B. #id

C. element

D. * (asterisk)

Correct Answer: C

4. Question: How do you include an external CSS file in an HTML document?

A. <style> element

B. <css> element

C. <link> element

D. <script> element

Correct Answer: C

5. Question: What is the purpose of the "margin" property in CSS?

A. To specify the background color of an element

B. To control the space between the content and the border of an element

C. To set the font size of text

D. To control the text alignment within an element

Correct Answer: B

6. Question: Which CSS property is used to make text bold?

A. font-style

B. font-weight

C. font-size

D. text-transform

Correct Answer: B

7. Question: What is the CSS box model?

A. A model for organizing CSS files

B. A model for defining the layout of HTML elements

C. A model for creating 3D graphics

D. A model for controlling animation

Correct Answer: B

8. Question: Which CSS property is used for adding shadows to elements?

A. text-shadow

B. box-shadow

C. shadow-effect

D. element-shadow

Correct Answer: B

9. Question: What is the purpose of the "float" property in CSS?

A. To move an element to the top of the page

B. To create a transparent background

C. To specify the width of an element

D. To control the placement of an element within its parent container

Correct Answer: D

10. Question: In CSS, what is the "z-index" property used for?

css
**A. To control the order of elements along the x-axis** 
**B. To control the order of elements along the y-axis** 
**C. To control the stacking order of elements** 
**D. To control the visibility of elements** 
**Correct Answer: C**

0 Comments