CSS Quiz 2

Description: CSS Quiz 2
Number of Questions: 13
Created by:
Tags: css
Attempted 0/13 Correct 0 Score 0
  1. p {text-size:bold}

  2. p {font-weight:bold}

  3. style:bold

  4. p{font:bold}

Correct Option: B
  1. a {decoration:no underline}

  2. a {text-decoration:no underline}

  3. a {underline:none}

  4. a {text-decoration:none}

Correct Option: D

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

  1. text-transform:uppercase

  2. text-transform:capitalize

  3. You can't do that with CSS

Correct Option: A
  1. fon-face:

  2. font-family:

  3. f:

  4. font-style:

Correct Option: B

How do you make the text bold?

  1. font:b

  2. style:bold

  3. font-weight:bold

Correct Option: C

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?

  1. border-width:10px 20px 5px 1px

  2. border-width:10px 1px 5px 20px

  3. border-width:10px 5px 20px 1px

  4. border-width:5px 20px 10px 1px

Correct Option: B
  1. padding:

  2. indent:

  3. margin:

  4. text-indent:

  5. margin-left:

Correct Option: E

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

  1. Yes

  2. No

Correct Option: B

How do you make a list that lists its items with squares?

  1. type: square

  2. list-style-type: square

  3. list-type: square

  4. style-list: square

Correct Option: B

Which HTML attribute is used to define inline styles?

  1. styles

  2. class

  3. font

  4. style

Correct Option: D

What is the correct CSS syntax for making all the

elements bold?

  1. p {font-weight:bold}

  2. p {text-size:bold}

Correct Option: A
- Hide questions