MDN self-hosted library · e01.org
Inheritance / notebook

Inheritance

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

css
p {
  color: green;
}
html
<p>This paragraph has <em>emphasized text</em> in it.</p>
css
p {
  border: medium solid;
}
html
<p>This paragraph has <em>emphasized text</em> in it.</p>
css
p {
  all: revert;
  font-size: 200%;
  font-weight: bold;
}
css
p {
  border: medium solid;
}

em {
  border: inherit;
}
html
<p>This paragraph has <em>emphasized text</em> in it.</p>