CSS 3

15 Questions | Total Attempts: 89

SettingsSettingsSettings
Please wait...
CSS Quizzes & Trivia

This is the quiz generated for CSS.


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

      Computer Style Sheets

    • B. 

      Cascading Style Sheets

    • C. 

      Creative Style Sheets

    • D. 

      Control Style Sheets

  • 2. 
    To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?
    • A. 

      Yes

    • B. 

      No

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

      At the top of the document

    • B. 

      In the section

    • C. 

      At the end of the document

    • D. 

      In the section

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

      Style

    • B. 

      Css

    • C. 

      Script

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

      Styles

    • B. 

      Style

    • C. 

      Font

    • D. 

      Class

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

      {body:color=black(body}

    • 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 ' this is a comment

    • B. 

      /*this is a comment*/ /*this is a comment*/

    • C. 

      //this is a comment// /this is a comment

    • D. 

      /this is a comment // this is a comment

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

      Color:

    • B. 

      Bgcolor:

    • C. 

      Background-color:

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

      All.h1 {background-color:#FFFFFF}

    • B. 

      H1.all {background-color:#FFFFFF}

    • C. 

      H1 {background-color:#FFFFFF}

  • 10. 
    How do you change the text color of an element?
    • A. 

      Color:

    • B. 

      Fgcolor:

    • C. 

      Text-color:

    • D. 

      Text-color=

  • 11. 
    Which CSS property controls the text size?
    • A. 

      Text-size

    • B. 

      Text-color

    • C. 

      Front-size

    • D. 

      Font-style

  • 12. 
    What is the correct CSS syntax for making all the elements bold?
    • A. 

    • B. 

    • C. 

      P {text-size:bold}

    • D. 

      P {font-weight:bold}

  • 13. 
    How do you display hyperlinks without an underline?
    • A. 

      A {underline:none}

    • B. 

      A {text-decoration:none}

    • C. 

      A {decoration:no underline}

    • D. 

      a {text-decoration:no underline}

  • 14. 
    How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel?
    • A. 

      Border-width:10px 20px 5px 1px

    • B. 

      Border-width:20px 10px 5px 1px

    • C. 

      Border-width:5px 20px 10px 1px

    • D. 

      Border-width:10px 20px 1px 5px

  • 15. 
    How do you make a list that lists its items with squares?
    • A. 

      Type: 2

    • B. 

      List-type: square

    • C. 

      List-style-type: square

    • D. 

      Type:square