Styling HTML Elements

Last Updated :
Discuss
Comments

Question 1

Which CSS property controls the spacing between lines of text?

  • letter-spacing

  • word-spacing

  • line-height

  • text-spacing

Question 2

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

  • list-style-type: none;

  • bullet: hidden;

  • remove-bullet: true;

  • list-decoration: none;

Question 3

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

  • border-collapse: collapse;

  • border-style: single;

  • table-collapse: true;

  • border-width: 1px;

Question 4

Which property changes the text color of links?

  • text-color

  • link-color

  • color

  • hover-color

Question 5

Which pseudo-class styles a link when hovered over?

  • :hover

  • :focus

  • :active

  • :visited

Question 6

How do you add a custom bullet to a list?

  • list-style: custom;

  • list-type: image;

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

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

Question 7

How can you make text appear in small caps?

  • font-variant: small-caps;

  • text-transform: uppercase;

  • font-weight: 600;

  • letter-case: caps;

Question 8

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

  • background-color: alternate;

  • tr:nth-child(even)

  • row-color: cycle;

  • table-stripe: yes;

Question 9

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

  • Removes underline from links

  • Changes the link color

  • Disables link functionality

  • Hides the link

Question 10

Which CSS property controls table cell spacing?

  • border-collapse

  • cell-spacing

  • padding

  • border-spacing

There are 15 questions to complete.

Take a part in the ongoing discussion