Multiple choice technology web technology

What is the correct CSS syntax for making all the

elements bold?

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

  2. p {font-weight:bold}

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

  4. p {text-size:bold}

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

The font-weight property controls text boldness in CSS. Option B uses correct CSS syntax: 'p' selector with font-weight:bold property declaration. Options A and C incorrectly mix inline style syntax with wrong property names.