CSS Quiz - 1

Test your knowledge of CSS fundamentals including syntax, properties, selectors, and the three methods of applying styles to web pages.

13 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What does CSS stand for?

  1. Creative Style Sheets
  2. Computer Style Sheets
  3. Cascading Style Sheets
  4. Cascade Style Sheets
  5. Colorful Style Sheets
Question 2 Multiple Choice (Single Answer)

Where in an HTML document is the correct place to refer to an external style sheet?

  1. In the <body> section
  2. At the end of the document
  3. At the top of the document
  4. In the <head> section
  5. Between head and body
Question 3 Multiple Choice (Single Answer)

Which HTML tag is used to define an internal style sheet?

  1. css
  2. text/style
  3. style
  4. script
Question 4 Multiple Choice (Single Answer)

Which HTML attribute is used to define inline styles?

  1. font
  2. styles
  3. css
  4. text
  5. style
Question 5 Multiple Choice (Single Answer)

Which is the correct CSS syntax?

  1. body {color: black}
  2. body:color=black
  3. {body:color=black(body}
  4. {body;color:black}
Question 6 Multiple Choice (Single Answer)

How do you insert a comment in a CSS file?

  1. /* this is a comment */
  2. ' this is a comment
  3. // this is a comment //
  4. // this is a comment
Question 7 Multiple Choice (Single Answer)

Which property is used to change the background color?

  1. bgcolor:
  2. background-color:
  3. color:
Question 8 Multiple Choice (Single Answer)

How do you add a background color for all "

" elements?

  1. all.h1 {background-color:#FFFFFF}
  2. h1.all {background-color:#FFFFFF}
  3. h1 {background-color:#FFFFFF}
Question 9 Multiple Choice (Single Answer)

How do you change the text color of an element?

  1. text-color:
  2. color:
  3. text-color=
  4. font-color:
Question 10 Multiple Choice (Single Answer)

Which CSS property controls the text size?

  1. font-style
  2. text-style
  3. font-size
  4. text-size
Question 11 Multiple Choice (Single Answer)

How do you make each word in a text start with a capital letter?

  1. text-transform:capitalize
  2. ext-transform:uppercase
  3. You can't do that with CSS
Question 12 Multiple Choice (Single Answer)

How do you change the left margin of an element?

  1. left-margin:
  2. margin:
  3. margin-left:
  4. text-indent:
Question 13 Multiple Choice (Single Answer)

What are the three methods for using style sheets with a web page

  1. Dreamweaver, GoLive or FrontPage
  2. Inline, embedded or document level and external
  3. Handcoded, Generated or WYSIWYG