Alien head

CSS Quiz - 1

Description: CSS Quiz - 1
Number of Questions: 13
Created by:
Tags: css

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

Answer: 3

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

Answer: 4

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

css
  1. css

  2. text/style

  3. style

  4. script

Answer: 3

Which HTML attribute is used to define inline styles?

css
  1. font

  2. styles

  3. css

  4. text

  5. style

Answer: 5

Which is the correct CSS syntax?

css
  1. body {color: black}

  2. body:color=black

  3. {body:color=black(body}

  4. {body;color:black}

Answer: 1

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

Answer: 1

Which property is used to change the background color?

css
  1. bgcolor:

  2. background-color:

  3. color:

Answer: 2

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}

Answer: 3

How do you change the text color of an element?

css
  1. text-color:

  2. color:

  3. text-color=

  4. font-color:

Answer: 2

Which CSS property controls the text size?

css
  1. font-style

  2. text-style

  3. font-size

  4. text-size

Answer: 3

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

Answer: 2

How do you change the left margin of an element?

css
  1. left-margin:

  2. margin:

  3. margin-left:

  4. text-indent:

Answer: 3

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

Answer: 2
+ View questions