Multiple choice css

What is the correct CSS syntax for making all the

elements bold?

  1. p {font-weight:bold}

  2. p {text-size:bold}

  3. <p style="text-size:bold">

  4. <p style="font-size:bold">

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

p {font-weight:bold} is correct CSS selector syntax targeting all paragraph elements. Options B and C use the non-existent text-size property, and D incorrectly uses font-size for boldness.