How do you apply a bold style to text in CSS?
- font-style: bold;
- text-weight: 700;
- font-weight: bold;
- bold: true;
The correct option is font-weight: bold;. This property is used to set the weight (boldness) of the font. The other options are either incorrect or do not exist in CSS.
Loading...
Related Quiz
- When trying to create a tooltip widget that appears above an element when hovered, which property and value pair is crucial to ensure that the tooltip does not affect the layout of surrounding elements when it is positioned?
- What is the purpose of using rgba() in CSS?
- When designing for internationalization, the property ________ in CSS is crucial for adjusting the layout to accommodate different scripts and writing modes.
- In BEM methodology, the __ (double underscore) is used to denote a(n) ________ of a block.
- How do you align the markers (like bullets or numbers) of a list inside or outside the content flow?