Quiz: <p>What is the meaning of CSS?</p>

  • Chicken Salad Sandwich
  • Cascading Style Sheet
  • Central Security Service
  • Cold Shrimp Salad
  • Quiz: <p>Which tag will you use to add style on your website?</p>

  • <css></css>
  • <color></color>
  • <style></style>
  • <head></head>
  • Quiz: <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”; }
  • Quiz: <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;
  • Quiz: <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; }
  • Quiz: <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
  • Quiz: <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
  • Quiz: <p>How many values a margin style rule cannot have?</p>

  • One
  • Two
  • Seven
  • Four