English

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

Advertisements
Advertisements

Question

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

Options

  • span {text-size:bold}
  • span {font-weight:bold}
  • <span style="font-size:bold">
  • <span style="text-size:bold">
MCQ
Advertisements

Solution

span {font-weight:bold}

Explanation:

The boldness or heaviness of a font is specified by the font-weight property. The span’s text is bolded in the provided code.

shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assisted Practice [Page 271]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assisted Practice | Q 6. | Page 271
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×