CSS Trivia Quiz Test

10 Questions | Total Attempts: 119

SettingsSettingsSettings
Please wait...
CSS Quizzes & Trivia

.


Questions and Answers
  • 1. 
    What does CSS stand for?
    • A. 

      Colorful Style Sheets

    • B. 

      Creative Style Sheets

    • C. 

      Cascading Style Sheets

    • D. 

      Computer Style Sheets

  • 2. 
    What is the correct HTML for referring to an external style sheet?
    • A. 

      <style src="mystyle.css" type="text/css"></pre></style>

    • B. 

      <link rel="stylesheet" type="text/css" href="mystyle.css">

    • C. 

      <stylesheet>mystyle.css</stylesheet>

  • 3. 
    Where in an HTML document is the correct place to refer to an external style sheet?
    • A. 

      In the<body> section

    • B. 

      In the<head> section

    • C. 

      At the end of the document

    • D. 

      T the top of the document

  • 4. 
    Which HTML tag is used to define an internal style sheet?
    • A. 

      <css>

    • B. 

      <script>

    • C. 

      <style>

  • 5. 
    Which HTML attribute is used to define inline styles?
    • A. 

      Style

    • B. 

      Class

    • C. 

      Styles

    • D. 

      Font

  • 6. 
    Which is the correct CSS syntax?
    • A. 

      {body;color:black;}

    • B. 

      Body {color: black;}

    • C. 

      Body:color=black;

    • D. 

      {body:color=black;}

  • 7. 
    How do you insert a comment in a CSS file?
    • A. 

      // this is a comment //

    • B. 

      // this is a comment

    • C. 

      /* this is a comment */

    • D. 

      ' this is a comment

  • 8. 
    Which property is used to change the background color?
    • A. 

      Bgcolor

    • B. 

      Background-color

    • C. 

      Color

  • 9. 
    How do you add a background color for all <h1> elements?
    • A. 

      H1 {background-color:#FFFFFF;}

    • B. 

      H1.all {background-color:#FFFFFF;}

    • C. 

      All.h1 {background-color:#FFFFFF;}

  • 10. 
    Which CSS property is used to change the text color of an element?
    • A. 

      Text-color

    • B. 

      Fgcolor

    • C. 

      Color