MDN self-hosted library · e01.org

`::target-text` CSS pseudo-element

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

css
::target-text {
  /* ... */
}
css
::target-text {
  background-color: rebeccapurple;
  color: white;
}