MDN self-hosted library · e01.org

`initial` CSS keyword

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

html
<p>
  This text is red and large.
  <em
    >This text is in the initial color (typically black) and initial size
    (typically 16px).</em
  >
  This is red and large again.
</p>
css
p {
  color: red;
  font-size: 2rem;
}

em {
  color: initial;
  font-size: initial;
}