Computer Applications

What is the correct CSS syntax for making all the <span> elements bold ?

  1. span {text-size:bold}
  2. span {font-weight:bold}
  3. <span style="font-size:bold">
  4. <span style="text-size:bold">

CSS

5 Likes

Answer

span {font-weight:bold}

Reason — The property font-weight specifies the boldness or heaviness for a font. In the given code, the content of span is set to bold.

Answered By

2 Likes


Related Questions