Quiz of CSS

βœ… 0 ❌ 0

Quiz 1 : What is the meaning of CSS?

πŸ‘€
a. Chicken Salad Sandwich
b. Cascading Style Sheet
c. Central Security Service
d. Cold Shrimp Salad

Quiz 2 : Which tag will you use to add style on your website?

πŸ‘€
a. <css></css>
b. <color></color>
c. <style></style>
d. <head></head>

Quiz 3 : How will you add blue color to all paragraph tags?</p><p>Hint: write four parts of a style rule

πŸ‘€
a. p{ blue: color }
b. p{ color = blue }
c. p{ color : blue; }
d. p{ text: β€œblue”; }

Quiz 4 : <span style="background-color: transparent; color: rgb(0, 0, 0);">How would you set a purple background color to an element?</span>

πŸ‘€
a. color:purple;
b. background color:purple;
c. background-color:purple;
d. backgroundColor:purple;

Quiz 5 : How to set the width of all paragraph tags as half of the available width? </p><p>Hint: think about the total width as a percent and then think about the half of the width

πŸ‘€
a. p{ width: 1/2 }
b. p{ width: 50%; }
c. p{ width: 0.5; }
d. p{ width: half; }

Quiz 6 : Which one is not true?

πŸ‘€
a. The value of multiple ID attributes has to be unique
b. Use ID to style a specific HTML element
c. Same ID should be used in different HTML tags
d. None

Quiz 7 : How can we add multiple classes to an HTML element?

πŸ‘€
a. Separate class names by a whitespace
b. Separate class names by a comma
c. You cannot apply more than one class name
d. Use id

Quiz 8 : How many values a margin style rule cannot have?

πŸ‘€
a. One
b. Two
c. Seven
d. Four