In CSS, how do you make every <p> element bold?0.5 Marksp {weight: bold;}p {text-size: bold;}p {style: bold;}p {font-weight: bold;}
Question
In CSS, how do you make every <p> element bold?0.5 Marksp {weight: bold;}p {text-size: bold;}p {style: bold;}p {font-weight: bold;}
Solution
In CSS, you can make every <p> element bold by using the following code:
p {
font-weight: bold;
}
This code selects all paragraph elements in the HTML document and applies the font-weight: bold; style to them, making the text within these elements bold.
Similar Questions
What is the correct CSS syntax for making all the <p> elements bold
Which of the following CSS properties is used to make the text bold?Optionstext-decoration: boldfont-style: boldtext-align: boldfont-weight: bold
How do you apply a style to all <h1> elements in CSS?0.5 Marks#h1 {}all.h1 {}h1 {}.h1 {}
Which CSS property is used to change the font of an element?font-typefont-weightfont-stylefont-family
Which HTML element is used to define important text in a document?Options<strong><em><important><bold>
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.