Long Test #2: CSS And Frames

35 Questions | Total Attempts: 247

SettingsSettingsSettings
Please wait...
Long Test #2: CSS And Frames

Good luck swithartz! Kung Hei Fat Choi! :)


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

      Computer Style Sheets

    • B. 

      Creative Style Sheets

    • C. 

      Cascading Style Sheets

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

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

    • B. 

      Mystyle.css

    • C. 

      <style>

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

      In the <body> section

    • B. 

      At the end of the document

    • C. 

      In the <head> section

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

      <script>

    • B. 

      <css>

    • C. 

      <style>

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

      Font

    • B. 

      Class

    • C. 

      Style

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

      Body {color: black;}

    • B. 

      Body:color=black;

    • C. 

      {body;color:black;}

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

      Background-color

    • B. 

      Color

    • C. 

      Bgcolor

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

      H1 {background-color:#FFFFFF;}

    • B. 

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

    • C. 

      23l {background-color:#FFFFFF;}

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

      Text-color

    • B. 

      Color

    • C. 

      Fgcolor

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

      Font-size

    • B. 

      Text-size

    • C. 

      Font-style

  • 11. 
    What is the correct CSS syntax for making all the <p> elements bold?
    • A. 

      <p style="text-size:bold;">

    • B. 

      P {font-weight:bold;}

    • C. 

      P {text-size:bold;}

  • 12. 
    Which property is used to change the font of an element?
    • A. 

      Font-weight

    • B. 

      Font-family

    • C. 

      Font-style

  • 13. 
    How do you make the text bold?
    • A. 

      Font:bold;

    • B. 

      Font-weight:bold;

    • C. 

      Style-bold

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

      List: square;

    • B. 

      List-type: square;

    • C. 

      List-style-type: square;

  • 15. 
    How do you select an element with id "demo"?
    • A. 

      Demo

    • B. 

      *demo

    • C. 

      #demo

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

      A {text-decoration:none;}

    • B. 

       a {underline:none;}

    • C. 

      A {text-decoration:no-underline;}

  • 17. 
    Which property is used to change the left margin of an element?
    • A. 

       margin-left

    • B. 

      Padding-left

    • C. 

      Indent

  • 18. 
    How do you group selectors?
    • A. 

      Separate each selector with a space

    • B. 

      Separate each selector with a plus sign

    • C. 

      Separate each selector with a comma

  • 19. 
    What is the correct HTML for adding a background color?
    • A. 

      <background>yellow</background>

    • B. 

      <body style="background-color:yellow;">

    • C. 

      <body bg="yellow">

  • 20. 
    What is the correct HTML for creating a hyperlink?
    • A. 

      <a href=longtest2.html>Long Test #2 </a>

    • B. 

      <a longtest2.html>Long Test #2 </a>

    • C. 

      <a href=longtest2.html>Long Test #2 </href>

  • 21. 
    Which of these elements are all <table> elements?
    • A. 

      <table><head><tfoot>

    • B. 

      <table><tr><tt>

    • C. 

      <table><tr><td>

  • 22. 
    What is the correct HTML for making a checkbox?
    • A. 

      <input type="check">

    • B. 

      <checkbox>

    • C. 

      <input type="checkbox">

  • 23. 
    What is the correct HTML for making a text input field?
    • A. 

      <textfield>

    • B. 

      <input type="textfield">

    • C. 

      <input type="text">

  • 24. 
    What is the correct HTML for making a drop-down list?
    • A. 

      <input type="list">

    • B. 

      <select>

    • C. 

      <input type="dropdown">

  • 25. 
    What is the correct HTML for inserting a background image?
    • A. 

      <body style="background-image:url(background.gif)">

    • B. 

      <body bg="background.gif">

    • C. 

      <background img="background.gif">

Back to Top Back to top