MDN self-hosted library · e01.org
Pseudo-elements / notebook

Pseudo-elements

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
selector::pseudo-element {
  property: value;
}
css
/* The first line of every <p> element. */
p::first-line {
  color: blue;
  text-transform: uppercase;
}