This article needs a technical review. How you can help.

In CSS, a pseudo-element selector applies styles to portions of your document content in scenarios where there isn't an HTML element to grab. For example, rather than putting the first letter of each paragraph in its own element, you can style them all with p::first-letter.

Learn more

Technical reference

Document Tags and Contributors

 Contributors to this page: ruthemmanuelle, charles_collins, klez, Andrew_Pfeiffer
 Last updated by: ruthemmanuelle,