Pseudo-element
A CSS pseudo-element is a selector construct that represents a conceptual part of an element or generated content for styling without a separate document element.
Tiny CSS Projects
A CSS pseudo-element is a selector feature that targets a specific conceptual part of an element.
- How it is used
- Targets conceptual parts of elements for details such as an accented first letter, appended punctuation, or a styled progress indicator.
- How deep it goes
- Explains selector syntax through CSS examples and a browser-specific workaround, while noting that pseudo-elements do not work on every HTML element.
- Examples
- Shows a crimson italic first letter, a colon after each description term, and matching progress-indicator styles for Firefox and Chrome.
- What you can do after
- Practice/perform targeted CSS styling by accenting a paragraph’s first letter or adding punctuation after description terms.
Web Design Playground, Second Edition
A CSS pseudo-element is a selector-generated construct that represents a stylable part of an element without requiring a separate HTML element.
- How it is used
- Adds generated visual content and styles to elements without adding separate HTML objects.
- How deep it goes
- Explains ::before, ::after, ::first-letter, content, hexadecimal characters, custom bullets, icons, and counters through examples.
- Examples
- Uses paragraph marks, custom list bullets, external-link icons, numbered lists, and a floating-container clearfix.
- What you can do after
- Apply it via CSS to create decorative characters, custom markers, link icons, and layout-clearing content.
Read how Web Design Playground, Second Edition explains pseudo-element →
Also covered in
What to know first
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- user-agent styleA user-agent style is a default set of presentation rules supplied by a browser for rendering document elements when author styles do not override them.
Related concepts
- CSSkind of · CSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- ::first-letter pseudo-elementincludes · The CSS ::first-letter pseudo-element represents the first typographic character of an element’s text for styling.
Questions about pseudo-element
What is pseudo-element?
A CSS pseudo-element is a selector construct that represents a conceptual part of an element or generated content for styling without a separate document element.
Which Manning books explain pseudo-element?
Tiny CSS Projects and Web Design Playground, Second Edition.
What should I know before learning pseudo-element?
Manning books that teach pseudo-element usually introduce CSS and user-agent style first.
What kinds of pseudo-element are there?
Kinds of pseudo-element include before pseudo-element, ::first-line, ::first-letter pseudo-element and ::-moz-progress-bar.
What is pseudo-element a kind of?
Pseudo-element is a kind of CSS. CSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

