CSS MCQ Quiz Hub

Css Mcq Set 1

Choose a topic to test your knowledge and improve your CSS skills

What is CSS?





✅ Correct Answer: 4

Who invented CSS?





✅ Correct Answer: 1

Which of the following tag is used to embed css in html page?





✅ Correct Answer: 4

Which of the following CSS selectors are used to specify a group of elements?





✅ Correct Answer: 3

In CSS, what does h1 can be called as _______





✅ Correct Answer: 2

Which of the following has introduced text, list, box, margin, border, color, and background properties?





✅ Correct Answer: 3

Which of the following CSS framework is used to create a responsive design?





✅ Correct Answer: 4

Which CSS selector is used to specify a rule to bind a particular unique element?





✅ Correct Answer: 2

In CSS, “font-size” can be called as ________





✅ Correct Answer: 3

Which type of HTML tag is used to define an internal style sheet?





✅ Correct Answer: 4

Which CSS property is used to make the text bold?





✅ Correct Answer: 2

What will be the output of following CSS code snippet? h1 {color: "green";}





✅ Correct Answer: 1

Which of the following CSS style property is used to specify an italic text?





✅ Correct Answer: 3

What will be the output of following CSS code snippet? h1 {color: red text-decoration: underline; font-style: italic;}





✅ Correct Answer: 2

Which of the following are the CSS Extension Prefixes for Webkit?





✅ Correct Answer: 4

Which is the correct syntax to link an external style sheet in the HTML file?





✅ Correct Answer: 1

Which of the following is the first CSS specification to become an official W3C Recommendation?





✅ Correct Answer: 3

Which of the following is the correct way to apply CSS style to a document?





✅ Correct Answer: 4

Which of the following is not a value for the font-style property?





✅ Correct Answer: 4

Which of the following function defines a linear gradient as a CSS image?





✅ Correct Answer: 2

In css, “color:red” can be called as ________





✅ Correct Answer: 1

Which CSS property can be used to set the image as a border instead of the border style?





✅ Correct Answer: 3

Which of the following CSS property defines the different properties of all four sides of an element’s border in a single declaration?





✅ Correct Answer: 2

Which of the following CSS property specifies an image to use as the background of an element?





✅ Correct Answer: 1

Which of the following is the correct way to apply CSS Styles?





✅ Correct Answer: 4

Which of the following CSS3 property is used to tell the browser what the sizing properties should be included?





✅ Correct Answer: 3

Which of the following CSS property sets the font size of text?





✅ Correct Answer: 1

Which is not the property of the CSS box model?





✅ Correct Answer: 2

Which of the following CSS property sets the amount of spacing between letters?





✅ Correct Answer: 4

Which of the following CSS property sets what kind of line decorations are added to an element, such as underlines, overlines, etc?





✅ Correct Answer: 3

Which of the following CSS property specifies the look and design of an outline?





✅ Correct Answer: 1

Which of the following CSS property specifies the placement of an element in relation to floating objects?





✅ Correct Answer: 2

What will be the output of the following CSS code snippet? span { border: 1px solid red; outline: green dotted thick; }





✅ Correct Answer: 3

Which of the following CSS property adds padding to the top of an element?





✅ Correct Answer: 1

Which of the following CSS property sets the shadow for a box element?





✅ Correct Answer: 2

Which of the following CSS property is used to set the color of the text?





✅ Correct Answer: 4

Which of the following CSS Property controls how an element is positioned?





✅ Correct Answer: 2

Which of the following CSS selector selects the elements that are checked?





✅ Correct Answer: 1

Which of the following is an appropriate value for the overflow element?





✅ Correct Answer: 4

Which of the following CSS property is used to specify table borders in CSS?





✅ Correct Answer: 3

Which of the following element is used to create a SVG rectangle?





✅ Correct Answer: 4

Which of the following CSS property converts text to initial capitals, all uppercase, or all lowercase?





✅ Correct Answer: 3

Which of the following CSS property sets the opacity level for an element?





✅ Correct Answer: 2

Which of the following strings are defined in CSS?





✅ Correct Answer: 1

Which of the following CSS Property sets the stacking order of positioned elements?





✅ Correct Answer: 2

What will be the output of the following CSS code? div { border-width:5px; border-style:dotted solid double dashed; }





✅ Correct Answer: 3

Which of the following CSS property defines the space between cells in a table?





✅ Correct Answer: 1

______ has introduced text, list, box, margin, border, color, and background properties.





✅ Correct Answer: 1

Select the CSS property that sets the width of an element’s bottom border?





✅ Correct Answer: 4

What will be the output of following code snippet? <style h1 {color: green;}> <h1>Hello</h1>





✅ Correct Answer: 3

The _______property is used to set the color of the text.





✅ Correct Answer: 3

Which of the following is the correct way to apply Styles?





✅ Correct Answer: 4