CSS MCQ Quiz Hub

CSS Mcq Questions

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

CSS stands for -





✅ Correct Answer: 3

Which of the following is the correct syntax for referring the external style sheet?





✅ Correct Answer: 4

The property in CSS used to change the background color of an element is -





✅ Correct Answer: 3

The property in CSS used to change the text color of an element is -





✅ Correct Answer: 2

The CSS property used to control the elements font-size is -





✅ Correct Answer: 3

The HTML attribute used to define the inline styles is -





✅ Correct Answer: 1

The HTML attribute used to define the internal stylesheet is -





✅ Correct Answer: 1

Which of the following CSS property is used to set the background image of an element?





✅ Correct Answer: 2

Which of the following is the correct syntax to make the background-color of all paragraph elements to yellow?





✅ Correct Answer: 1

Which of the following is the correct syntax to display the hyperlinks without any underline?





✅ Correct Answer: 3

Which of the following property is used as the shorthand property for the padding properties?





✅ Correct Answer: 3

The CSS property used to make the text bold is -





✅ Correct Answer: 1

Are the negative values allowed in padding property?





✅ Correct Answer: 2

Which of the following property is used as the shorthand property of margin properties?





✅ Correct Answer: 3

The CSS property used to specify the transparency of an element is -





✅ Correct Answer: 1

Which of the following is used to specify the subscript of text using CSS?





✅ Correct Answer: 1

Which of the following CSS property is used to specify the space between every letter inside an element?





✅ Correct Answer: 3

18) The CSS property used to specify whether the text is written in the horizontal or vertical direction?





✅ Correct Answer: 1

Which of the following syntax is correct in CSS to make each word of a sentence start with a capital letter?





✅ Correct Answer: 4

How to select the elements with the class name "example"?





✅ Correct Answer: 3

Which of the following is the correct syntax to select all paragraph elements in a div element?p22)





✅ Correct Answer: 1

Which of the following is the correct syntax to select the p siblings of a div element?div + pdiv p23)





✅ Correct Answer: 4

The CSS property used to draw a line around the elements outside the border?24)





✅ Correct Answer: 2

Which of the following CSS property is used to add shadows to the text?25)





✅ Correct Answer: 1

Which of the following is not a value of the font-variant property in CSS?





✅ Correct Answer: 3

26) Which of the following CSS property is used to specify whether the table cells share the common or separate border?border-spacing27)





✅ Correct Answer: 1

The CSS property used to make the rounded borders or rounded corners around an element is -28)





✅ Correct Answer: 2

The CSS property used to set the distance between the borders of the adjacent cells in the table is -





✅ Correct Answer: 3

Which of the following selector in CSS is used to select the elements that do not match the selectors?





✅ Correct Answer: 2

Which of the following CSS property defines how an image or video fits into container with established height and width?





✅ Correct Answer: 1

Which type of CSS is used in the below code?





✅ Correct Answer: 1

Which of the following CSS property specifies the origin of the background-image?





✅ Correct Answer: 1

The CSS property used to set the maximum width of the elements content box is -





✅ Correct Answer: 1

Which if the following CSS function allows us to perform calculations?





✅ Correct Answer: 1

The CSS property used to set the maximum height of the elements content box is -





✅ Correct Answer: 3

The CSS property used to set the minimum width of the elements content box is -





✅ Correct Answer: 2

Which of the following CSS property is used to represent the overflowed text which is not visible to the user?





✅ Correct Answer: 3

The CSS property which is used to define the set the difference between two lines of your content is -min-height property





✅ Correct Answer: 3

The CSS property which is used to define the set the difference between two lines of your content is -





✅ Correct Answer: 3

Which of the following CSS property is used to add stroke to the text?





✅ Correct Answer: 1

Which of the following CSS property is used to set the blend mode for each background layer of an element?





✅ Correct Answer: 1

The CSS property used to specify the transparency of an element is -





✅ Correct Answer: 2

Which of the following CSS property is used to set the horizontal alignment of a table-cell box or the block element?text-align property





✅ Correct Answer: 1

The CSS property which is used to set the text wider or narrower compare to the default width of the font is -





✅ Correct Answer: 1

Which of the following CSS property is used to specify the type of quotation mark?





✅ Correct Answer: 1

The CSS property used to specify the order of flex item in the grid container is -order property





✅ Correct Answer: 1

The CSS property used to set the indentation of the first line in a block of text is -





✅ Correct Answer: 1

Which of the following CSS property creates a clipping region and specifies the visible area of the element?





✅ Correct Answer: 3

The correct syntax to give a line over text is -





✅ Correct Answer: 3

If we want define style for an unique element then which css selector will we use ?





✅ Correct Answer: 1

If we dont want to allow a floating div to the left side of an element which css property will we use ?





✅ Correct Answer: 2

Suppose we want to arragnge five nos. of DIVs so that DIV4 is placed above DIV1. Now which css property will we use to control the order of stack?





✅ Correct Answer: 4

If we want to show an Arrow as cursor then which value we will use ?





✅ Correct Answer: 2

If we want to use a nice looking green dotted border around an image which css property will we use?





✅ Correct Answer: 3

Which of the following properties will we use to display border around a cell without any content ?





✅ Correct Answer: 1

What should be the table width so that the width of a table adjust to the current width of the browser window?





✅ Correct Answer: 2

Which element is used in the <HEAD> section on an HTML / XHTMLpage if we want to use an external style sheet file to decorate the page ?





✅ Correct Answer: 2

Which attribute can be added to many HTML / XHTML elements to identify them as a member of a specific group ?





✅ Correct Answer: 3

When we write <img src=img.png> what img.png inside double quote implies?





✅ Correct Answer: 3

How can we write comment along with CSS code ?





✅ Correct Answer: 1

Which css property you will use if you want to add some margin between a DIVs border and its inner text ?





✅ Correct Answer: 3

Which CSS property is used to control the text size of an element ?





✅ Correct Answer: 3

The default value of position attribute is _________.





✅ Correct Answer: 4

How will you make all paragraph elements RED in color ?





✅ Correct Answer: 4

By default Hyperlinks are displayed with an underline. How do you remove the underline from all hyperlinks by using CSS code ?





✅ Correct Answer: 2