Quiz about Styling HTML Elements

Styling HTML Elements

Last Updated :
Discuss
Comments

Question 1

Which CSS property controls the spacing between lines of text?

  • A

    letter-spacing

  • B

    word-spacing

  • C

    line-height

  • D

    text-spacing

Question 2

Which property is used to remove the bullet points in an unordered list?

  • A

    list-style-type: none;

  • B

    bullet: hidden;

  • C

    remove-bullet: true;

  • D

    list-decoration: none;

Question 3

How do you make table borders collapse into a single border?

  • A

    border-collapse: collapse;

  • B

    border-style: single;

  • C

    table-collapse: true;

  • D

    border-width: 1px;

Question 4

Which property changes the text color of links?

  • A

    text-color

  • B

    link-color

  • C

    color

  • D

    hover-color

Question 5

Which pseudo-class styles a link when hovered over?

  • A

    :hover

  • B

    :focus

  • C

    :active

  • D

    :visited

Question 6

How do you add a custom bullet to a list?

  • A

    list-style: custom;

  • B

    list-type: image;

  • C

    list-style-image: url(‘bullet.png’);

  • D

    bullet-image: url(‘bullet.png’);

Question 7

How can you make text appear in small caps?

  • A

    font-variant: small-caps;

  • B

    text-transform: uppercase;

  • C

    font-weight: 600;

  • D

    letter-case: caps;

Question 8

Which property is used to make table rows alternate in color?

  • A

    background-color: alternate;

  • B

    tr:nth-child(even)

  • C

    row-color: cycle;

  • D

    table-stripe: yes;

Question 9

What does text-decoration: none; do to links?

  • A

    Removes underline from links

  • B

    Changes the link color

  • C

    Disables link functionality

  • D

    Hides the link

Question 10

Which CSS property controls table cell spacing?

  • A

    border-collapse

  • B

    cell-spacing

  • C

    padding

  • D

    border-spacing

There are 15 questions to complete.

Take a part in the ongoing discussion