CSS · More selectors

::first-letter

Styles the first letter for drop caps and editorial treatment.

Syntax
::first-letter

Example

Try it

More in this group

::backdrop ::file-selector-button ::first-line ::marker ::part() ::slotted() ::target-text :autofill

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course