CSS Quiz - 1

Description: CSS Quiz - 1
Number of Questions: 13
Created by:
Tags: css
Attempted 0/13 Correct 0 Score 0

What does CSS stand for?

css
  1. Creative Style Sheets

  2. Computer Style Sheets

  3. Cascading Style Sheets

  4. Cascade Style Sheets

  5. Colorful Style Sheets


Correct Option: C

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

css
  1. In the section

  2. At the end of the document

  3. At the top of the document

  4. In the section

  5. Between head and body


Correct Option: D

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

css
  1. css

  2. text/style

  3. style

  4. script


Correct Option: C

Which HTML attribute is used to define inline styles?

css
  1. font

  2. styles

  3. css

  4. text

  5. style


Correct Option: E

Which is the correct CSS syntax?

css
  1. body {color: black}

  2. body:color=black

  3. {body:color=black(body}

  4. {body;color:black}


Correct Option: A

How do you insert a comment in a CSS file?

css
  1. /* this is a comment */

  2. ' this is a comment

  3. // this is a comment //

  4. // this is a comment


Correct Option: A

Which property is used to change the background color?

css
  1. bgcolor:

  2. background-color:

  3. color:


Correct Option: B

How do you add a background color for all "

" elements?

css
  1. all.h1 {background-color:#FFFFFF}

  2. h1.all {background-color:#FFFFFF}

  3. h1 {background-color:#FFFFFF}


Correct Option: C

How do you change the text color of an element?

css
  1. text-color:

  2. color:

  3. text-color=

  4. font-color:


Correct Option: B

Which CSS property controls the text size?

css
  1. font-style

  2. text-style

  3. font-size

  4. text-size


Correct Option: C

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

css
  1. text-transform:capitalize

  2. ext-transform:uppercase

  3. You can't do that with CSS


Correct Option: B

How do you change the left margin of an element?

css
  1. left-margin:

  2. margin:

  3. margin-left:

  4. text-indent:


Correct Option: C

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

css
  1. Dreamweaver, GoLive or FrontPage

  2. Inline, embedded or document level and external

  3. Handcoded, Generated or WYSIWYG


Correct Option: B
- Hide questions