Vidyalelo
CSS · all questions

CSS Selectors and CSS Files
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

30

Questions

2/2

Page

Pick an option on a question to see the right answer and solution.

What will happen in this case?
p strong {background-color: yellow;}

Select an option to see the answer and solution.

A similar rule called the ____________ is specified using the plus sign (+) and is used to select elements that would be siblings of each other.

Select an option to see the answer and solution.

Which of the following selectors selects any tag with an id attribute set?

Select an option to see the answer and solution.

Which of the following selectors selects direct descendents?

Select an option to see the answer and solution.

Which of the following selectors selects siblings?

Select an option to see the answer and solution.

Which of the following selectors selects the specified elements of type E with a particular class value?

Select an option to see the answer and solution.

Which of the following selectors selects adjacent siblings?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

Which style is this?
<body style="background-color: lightcyan">

Select an option to see the answer and solution.

Is this correct way to apply css.State true or false.
<link rel="stylesheet" type="text/css" href="mystyle.css">

Select an option to see the answer and solution.