Cascading Style Sheet (CSS) MCQs with answers Page - 5

Here, you will find a collection of MCQ questions on Cascading Style Sheet (CSS). Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 802.91K Points
Coach

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

  • (A) example
  • (B) #example
  • (C) .example
  • (D) Class example

A

Admin • 802.91K Points
Coach

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

  • (A) div p
  • (B) p
  • (C) div#p
  • (D) div ~ p

A

Admin • 802.91K Points
Coach

Q. Which of the following is the correct syntax to select the p siblings of a div element?

  • (A) p
  • (B) div + p
  • (C) div p
  • (D) div ~ p

A

Admin • 802.91K Points
Coach

Q. The CSS property used to draw a line around the elements outside the border?

  • (A) border
  • (B) outline
  • (C) padding
  • (D) line

A

Admin • 802.91K Points
Coach

Q. Which of the following CSS property is used to add shadows to the text?

  • (A) text-shadow
  • (B) text-stroke
  • (C) text-overflow
  • (D) text-decoration

A

Admin • 802.91K Points
Coach

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

  • (A) normal
  • (B) small-caps
  • (C) large-caps
  • (D) inherit

A

Admin • 802.91K Points
Coach

Q. Which of the following CSS property is used to specify whether the table cells share the common or separate border?

  • (A) border-collapse
  • (B) border-radius
  • (C) border-spacing
  • (D) None of the above

A

Admin • 802.91K Points
Coach

Q. The CSS property used to make the rounded borders, or rounded corners around an element is

  • (A) border-collapse
  • (B) border-radius
  • (C) border-spacing
  • (D) None of the above

A

Admin • 802.91K Points
Coach

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

  • (A) border-collapse
  • (B) border-radius
  • (C) border-spacing
  • (D) None of the above

A

Admin • 802.91K Points
Coach

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

  • (A) :! selector
  • (B) :not selector
  • (C) :empty selector
  • (D) None of the above

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ