Multiple choice css

What is the correct CSS syntax for making all the

elements bold?

  1. p {text-size:bold}

  2. p {font-weight:bold}

  3. style:bold

  4. p{font:bold}

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In CSS, the 'font-weight' property is specifically used to define the thickness of characters. Setting it to 'bold' makes the text heavy. 'text-size' is not a valid property (it is 'font-size'), and 'font:bold' is incomplete shorthand syntax.