initial value

  • Revision slug: Web/CSS/initial_value
  • Revision title: initial value
  • Revision id: 495111
  • Created:
  • Creator: kscarfone
  • Is current revision? Yes
  • Comment Updated tags

Revision Content

Summary

The initial value given in the summary of the definition of each CSS property has different meaning for inherited and non-inherited properties.

For inherited properties, the initial value is used, for the root element only, when no value is specified for the element.

For non-inherited properties the initial value is used, for any element, when no value is specified for the element.

An initial keyword is being added in CSS3 to allow authors to explicitly specify this initial value.

See also

Revision Source

<h2 id="Summary">Summary</h2>
<p>The <strong>initial value</strong> given in the summary of the definition of <a href="/en-US/docs/CSS/CSS_Reference" title="en/CSS_Reference">each CSS property</a> has different meaning for <a href="/en-US/docs/CSS/inheritance" title="en/CSS/inheritance">inherited and non-inherited properties</a>.</p>
<p>For <a href="/en-US/docs/CSS/inheritance#Inherited_properties" title="en/CSS/inheritance#Inherited_properties">inherited properties</a>, the initial value is used, for the root element <strong>only</strong>, when no value is specified for the element.</p>
<p>For <a href="/en-US/docs/CSS/inheritance#Non-inherited_properties" title="en/CSS/inheritance#Non-inherited_properties">non-inherited properties</a> the initial value is used, for <strong>any</strong> element, when no value is specified for the element.</p>
<p>An <code><a href="/en-US/docs/CSS/initial" title="en/CSS/initial">initial</a></code> keyword is being added in CSS3 to allow authors to explicitly specify this initial value.</p>
<h2 id="See_also">See also</h2>
<ul>
 <li><a href="/en-US/docs/CSS/CSS_Reference" title="CSS Reference">CSS Reference</a></li>
 <li>{{ CSS_key_concepts() }}</li>
 <li><code><a href="/en-US/docs/CSS/initial" title="en/CSS/initial">initial</a></code></li>
</ul>
Revert to this revision