Multiple choice technology web 2.0

What is the correct CSS syntax for making all the paragraph elements bold?

  1. p {font-weight:bold}

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

  3. p {text-size:bold}

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

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

The correct CSS property for making text bold is font-weight with value bold. Option A uses the correct CSS syntax with a selector (p) and property-value pair (font-weight:bold). Options B and D incorrectly use inline style syntax with font-size or text-size, which are not properties for bold text. Option C uses the non-existent property text-size.