Multiple choice technology web technology

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

The correct CSS property for making text bold is 'font-weight' with value 'bold'. The selector 'p' targets all paragraph elements. Options B and D use non-existent properties ('text-size', 'font-size' for boldness). Option C uses inline style syntax but with an incorrect property.