Quiz of CSS

Question 1
<p>What is the meaning of CSS?</p>

Chicken Salad Sandwich

Cascading Style Sheet

Central Security Service

Cold Shrimp Salad

Question 2
<p>Which tag will you use to add style on your website?</p>

<css></css>

<color></color>

<style></style>

<head></head>

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

p{ blue: color }

p{ color = blue }

p{ color : blue; }

p{ text: “blue”; }

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

color:purple;

background color:purple;

background-color:purple;

backgroundColor:purple;

Question 5
<p>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</p>

p{ width: 1/2 }

p{ width: 50%; }

p{ width: 0.5; }

p{ width: half; }

Question 6
<p>Which one is not true?</p>

The value of multiple ID attributes has to be unique

Use ID to style a specific HTML element

Same ID should be used in different HTML tags

Question 7
<p>How can we add multiple classes to an HTML element?</p>

Separate class names by a whitespace

Separate class names by a comma

You cannot apply more than one class name

Use id

Question 8
<p>How many values a margin style rule cannot have?</p>

One

Two

Seven

Four