🎴 Flashcard Mode

CSS Styling Properties and Selectors

Card1 / 13
Mastered0
Review0
QuestionClick to flip

What is the correct CSS syntax for making all the

elements bold?

AnswerClick to flip back
A
p {font-weight:bold}
💡 Explanation:

In CSS, the 'font-weight' property is specifically used to define the thickness of characters. Setting it to 'bold' makes the text heavy. 'text-size' is not a valid property (it is 'font-size'), and 'font:bold' is incomplete shorthand syntax.

Change Mode