Welcome to Quiz Exams.

Quiz of CSS

Total Questions: 8

Question No : 1

What is the meaning of CSS?

Ans:

  • Chicken Salad Sandwich
  • Cascading Style Sheet
  • Central Security Service
  • Cold Shrimp Salad
  • Question No : 2

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

    Ans:

  • <css></css>
  • <color></color>
  • <style></style>
  • <head></head>
  • Question No : 3

    How will you add blue color to all paragraph tags?Hint: write four parts of a style rule

    Ans:

  • p{ blue: color }
  • p{ color = blue }
  • p{ color : blue; }
  • p{ text: “blue”; }
  • Question No : 4

    How would you set a purple background color to an element?

    Ans:

  • color:purple;
  • background color:purple;
  • background-color:purple;
  • backgroundColor:purple;
  • Question No : 5

    How to set the width of all paragraph tags as half of the available width? Hint: think about the total width as a percent and then think about the half of the width

    Ans:

  • p{ width: 1/2 }
  • p{ width: 50%; }
  • p{ width: 0.5; }
  • p{ width: half; }
  • Question No : 6

    Which one is not true?

    Ans:

  • 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 No : 7

    How can we add multiple classes to an HTML element?

    Ans:

  • Separate class names by a whitespace
  • Separate class names by a comma
  • You cannot apply more than one class name
  • Use id
  • Question No : 8

    How many values a margin style rule cannot have?

    Ans:

  • One
  • Two
  • Seven
  • Four
  • Developed and Operated by Office of the Nation Implementtation Committee . Powered by Ict Division & Bangabandhu Memorial Trust, Bangladesh .