MDN self-hosted library · e01.org
CSS selectors / notebook

CSS selectors

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

css
/* Set font size on all <p> elements */
p {
  font-size: 12px;
  color: rebeccapurple;
}
css
/* Select elements and apply styles */
selector {
  property: value;
}