Alien head

CSS Quiz 2

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

What is the correct CSS syntax for making all the

elements bold?

css
  1. p {text-size:bold}

  2. p {font-weight:bold}

  3. style:bold

  4. p{font:bold}

Answer: 2

How do you display hyperlinks without an underline?

css
  1. a {decoration:no underline}

  2. a {text-decoration:no underline}

  3. a {underline:none}

  4. a {text-decoration:none}

Answer: 4

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

css
  1. text-transform:uppercase

  2. text-transform:capitalize

  3. You can't do that with CSS

Answer: 1

How do you change the font of an element?

css
  1. fon-face:

  2. font-family:

  3. f:

  4. font-style:

Answer: 2

How do you make the text bold?

css
  1. font:b

  2. style:bold

  3. font-weight:bold

Answer: 3

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?

css
  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

Answer: 2

How do you change the left margin of an element?

css
  1. padding:

  2. indent:

  3. margin:

  4. text-indent:

  5. margin-left:

Answer: 5

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

css
  1. Yes

  2. No

Answer: 2

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

css
  1. type: square

  2. list-style-type: square

  3. list-type: square

  4. style-list: square

Answer: 2

What is the correct HTML for referring to an external style sheet?

css
  1. mainstyle.css

Answer: 1

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

css
Answer: 4

Which HTML attribute is used to define inline styles?

css
  1. styles

  2. class

  3. font

  4. style

Answer: 4

What is the correct CSS syntax for making all the

elements bold?

css
  1. p {font-weight:bold}

  2. p {text-size:bold}

Answer: 1
+ View questions