Tag: css

Questions Related to css

Which HTML attribute is used to define inline styles?

css
  1. styles

  2. class

  3. font

  4. style


Correct Option: D
css
  1. p {font-weight:bold}

  2. p {text-size:bold}


Correct Option: A
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
css
  1. Dreamweaver, GoLive or FrontPage

  2. Inline, embedded or document level and external

  3. Handcoded, Generated or WYSIWYG


Correct Option: B
  1. text-color

  2. foreground-color

  3. background-color

  4. color


Correct Option: D
  1. selector { property: value }

  2. selector { property= value }

  3. selector ( property: value )

  4. selector ( property= value )


Correct Option: A

What does the ID selector do?

  1. Apply the style to a specific element

  2. Apply the style to all the elements

  3. Apply the style to a group of elements

  4. Apply the style to elements of the same type


Correct Option: A
  1. Tag

  2. Attribute

  3. Deceleration

  4. This is H1

  5. h1 {color: red;}


Correct Option: C