The ::first-letter pseudo-element in CSS targets the ________ of a block-level element.
- First character
- First letter
- First line
- First word
The ::first-letter pseudo-element in CSS is used to target the first letter of a block-level element, such as a paragraph or a heading. It's commonly used for styling the initial letter of a text block, for decorative or typographic purposes.
Loading...
Related Quiz
- In the BEM approach, if you have a block named "menu" and an element inside it named "item", how would you represent it using a class?
- You want to overlay a button on top of an image. The button should be at the bottom right corner of the image. How would you position the button using CSS?
- How can you specify that an animation should run in reverse order?
- How can you ensure that a CSS transition applies only when a specific property changes?
- What is the primary purpose of the filter property in CSS?