How can you make the text of an element bold using CSS?
- font-decoration: bold;
- font-weight: bold;
- text-decoration: bold;
- text-style: bold;
To make the text of an element bold in CSS, you should use the font-weight property and set it to the value bold. This increases the thickness of the characters, making them appear bold.
Loading...
Related Quiz
- You want to design a heartbeat animation where a heart icon grows and shrinks continuously. How would you ensure the animation runs smoothly in both directions?
- You have a CSS variable named --gap, and you want to double its value and use it as a margin. How would you achieve this using CSS functions?
- In CSS, when a variable is not set or its value is invalid, it will return the ________ value.
- How does Autoprefixing aid in ensuring cross-browser compatibility?
- If you have two conflicting CSS rules that point to the same element, how does CSS determine which one to apply?