CBSE Class 10 Computer Applications Question 10 of 37

Cascading Style Sheets (CSS) — Question 6

Back to all questions
6
Question

Question 6

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">
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.