 
    
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>css inheritance Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/css-inheritance/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/css-inheritance/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Wed, 17 Apr 2019 12:48:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>CSS &#8211; Understanding Inheritance and Default Values</title>
		<link>https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/css-understanding-inheritance-and-default-values/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Fri, 22 Mar 2019 19:59:11 +0000</pubDate>
				<category><![CDATA[Front-End Basics]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css default values]]></category>
		<category><![CDATA[css inheritance]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[understanding]]></category>
		<guid isPermaLink="false">https://complete-concrete-concise.com/?p=3801</guid>

					<description><![CDATA[<p>Learn which CSS properties child elements inherit from their parents and what their default values are.</p>
<p>The post <a href="https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/css-understanding-inheritance-and-default-values/">CSS &#8211; Understanding Inheritance and Default Values</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="preamble">
<p>You’ve implicitly encountered inheritance and default values while working with CSS.</p>
</div>
<h2 id="contents">Contents</h2>
<ol class="incremental" type="1">
<li><a href="#inheritance">Inheritance</a></li>
<li><a href="#default-values">Default Values</a></li>
<li><a href="#table-of-inheritance-and-default-values">Table of Inheritance and Default Values</a></li>
<li><a href="#the-inherit-value">The ‘inherit’ Value</a></li>
<li><a href="#the-default-value">The ‘default’ Value</a></li>
<li><a href="#final-words">Final Words</a></li>
<li><a href="#references">References</a></li>
</ol>
<h2 id="inheritance">Inheritance</h2>
<p>When working with CSS, you probably noticed that styling like this:</p>
<div id="cb1" class="sourceCode">
<pre class="sourceCode css"><code class="sourceCode css"><a id="cb1-1" class="sourceLine" title="1"></a><span class="fu">.important</span> {
<a id="cb1-2" class="sourceLine" title="2"></a>  <span class="kw">font-size</span>: <span class="dv">32</span><span class="dt">px</span><span class="op">;</span>
<a id="cb1-3" class="sourceLine" title="3"></a>}</code></pre>
</div>
<p>When applied to HTML like this:</p>
<div id="cb2" class="sourceCode">
<pre class="sourceCode html"><code class="sourceCode html"><a id="cb2-1" class="sourceLine" title="1"></a><span class="kw">&lt;div</span><span class="ot"> class=</span><span class="st">"important"</span><span class="kw">&gt;</span>
<a id="cb2-2" class="sourceLine" title="2"></a>  <span class="kw">&lt;p&gt;</span>This is important!<span class="kw">&lt;/p&gt;</span>
<a id="cb2-3" class="sourceLine" title="3"></a><span class="kw">&lt;/div&gt;</span></code></pre>
</div>
<p>Results in output that looks like this:</p>
<div class="html-output">
<style>
  .x1-css-inheritance-important {
    font-size:32px;
  }
</style>
<div class="x1-css-inheritance-important">
<p>This is important!</p>
</div>
</div>
<p>This is because the <span class="html-tag">p</span> element <strong>inherits</strong> the <span class="css-property">font-size</span> property applied to its parent <span class="html-tag">div</span>.</p>
<p>Not all properties are inherited by child elements.</p>
<p>Consider the following CSS:</p>
<div id="cb3" class="sourceCode">
<pre class="sourceCode css"><code class="sourceCode css"><a id="cb3-1" class="sourceLine" title="1"></a><span class="fu">.important</span> {
<a id="cb3-2" class="sourceLine" title="2"></a>  <span class="kw">border</span>: <span class="dv">1</span><span class="dt">px</span> <span class="cn">red</span> <span class="dv">solid</span><span class="op">;</span>
<a id="cb3-3" class="sourceLine" title="3"></a>}</code></pre>
</div>
<p>When applied to the following HTML:</p>
<div id="cb4" class="sourceCode">
<pre class="sourceCode html"><code class="sourceCode html"><a id="cb4-1" class="sourceLine" title="1"></a><span class="kw">&lt;div</span><span class="ot"> class=</span><span class="st">"important"</span><span class="kw">&gt;</span>
<a id="cb4-2" class="sourceLine" title="2"></a>  <span class="kw">&lt;p&gt;</span>This is important!<span class="kw">&lt;/p&gt;</span>
<a id="cb4-3" class="sourceLine" title="3"></a><span class="kw">&lt;/div&gt;</span></code></pre>
</div>
<p>Results in the <span class="css-property">border</span> only applied to the <span class="html-tag">div</span> element and not the <span class="html-tag">p</span> element:</p>
<div class="html-output">
<style>
  .x2-css-inheritance-important {
    border:1px solid red;
  }
</style>
<div class="x2-css-inheritance-important">
<p>This is important!</p>
</div>
</div>
<p>If the <span class="html-tag">p</span> tag inherited the border property from the parent <span class="html-tag">div</span> tag, it would have looked like this:</p>
<div class="html-output">
<style>
  .x2-css-inheritance-important {
    border:1px solid red;
  }
</style>
<div class="x2-css-inheritance-important">
<p class="x2-css-inheritance-important">This is important!</p>
</div>
</div>
<p>Which is, probably, not what you want.</p>
<h2 id="default-values">Default Values</h2>
<p>When you write some HTML like:</p>
<div id="cb5" class="sourceCode">
<pre class="sourceCode html"><code class="sourceCode html"><a id="cb5-1" class="sourceLine" title="1"></a><span class="dt">&lt;!DOCTYPE </span>HTML<span class="dt">&gt;</span>
<a id="cb5-2" class="sourceLine" title="2"></a><span class="kw">&lt;html&gt;</span>
<a id="cb5-3" class="sourceLine" title="3"></a>  <span class="kw">&lt;head&gt;</span>
<a id="cb5-4" class="sourceLine" title="4"></a>    <span class="kw">&lt;title&gt;</span>Hello World<span class="kw">&lt;/title&gt;</span>
<a id="cb5-5" class="sourceLine" title="5"></a>    <span class="kw">&lt;meta</span><span class="ot"> charset=</span><span class="st">"utf-8"</span>  <span class="kw">/&gt;</span>
<a id="cb5-6" class="sourceLine" title="6"></a>  <span class="kw">&lt;/head&gt;</span>
<a id="cb5-7" class="sourceLine" title="7"></a>  <span class="kw">&lt;body&gt;</span>
<a id="cb5-8" class="sourceLine" title="8"></a>    <span class="kw">&lt;p&gt;</span>Hello World!<span class="kw">&lt;/p&gt;</span>
<a id="cb5-9" class="sourceLine" title="9"></a>  <span class="kw">&lt;/body&gt;</span>
<a id="cb5-10" class="sourceLine" title="10"></a><span class="kw">&lt;/html&gt;</span></code></pre>
</div>
<p>You see <strong>Hello World!</strong> displayed in the browser.</p>
<p>It is very likely that the font will be <strong>serif</strong> or <strong>sans serif</strong>, it will be 16px in size, the text will be <span class="css-value">black</span> on a <span class="css-value">white</span> background, and there is no border &#8211; and you didn’t have to style anything.</p>
<p>This is because every CSS property has a default value. The default value may be changed through inheritance or when you explicitly set the value.</p>
<h2 id="table-of-inheritance-and-default-values">Table of Inheritance and Default Values</h2>
<p>The following table shows which CSS properties (that we’ve seen) are inherited by child elements from their parents.</p>
<p>It also shows the default values for those CSS properties.</p>
<div class="p-note">
<p>Browser implementations sometimes set values other than what is defined in the CSS specification. Footnotes are given for many of the values and any alternate values given should be regarded as informative rather than absolute.</p>
</div>
<table style="margin-right: auto;">
<thead>
<tr class="header">
<th style="text-align: left;">CSS Property</th>
<th>Inherited</th>
<th>Default Value</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">color</span></td>
<td><span class="green-text">Yes</span></td>
<td>Depends on the browser (usually <span class="css-value">black</span>)<a id="fnref1" class="footnote-ref" href="#fn1"><sup>1</sup></a></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property" style="white-space: nowrap;">background-color</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">transparent</span><a id="fnref2" class="footnote-ref" href="#fn2"><sup>2</sup></a></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">padding</span></td>
<td><span class="red-text">No</span></td>
<td>See the individual properties</td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">padding-left</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">0</span><a id="fnref3" class="footnote-ref" href="#fn3"><sup>3</sup></a></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">padding-right</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">0</span><a id="fnref4" class="footnote-ref" href="#fn4"><sup>4</sup></a></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">padding-top</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">0</span><a id="fnref5" class="footnote-ref" href="#fn5"><sup>5</sup></a></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">padding-bottom</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">0</span><a id="fnref6" class="footnote-ref" href="#fn6"><sup>6</sup></a></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">margin</span></td>
<td><span class="red-text">No</span></td>
<td>See the individual properties</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">margin-left</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">0</span><a id="fnref7" class="footnote-ref" href="#fn7"><sup>7</sup></a></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">margin-right</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">0</span><a id="fnref8" class="footnote-ref" href="#fn8"><sup>8</sup></a></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">margin-top</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">0</span><a id="fnref9" class="footnote-ref" href="#fn9"><sup>9</sup></a></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">margin-bottom</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">0</span><a id="fnref10" class="footnote-ref" href="#fn10"><sup>10</sup></a></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">border</span></td>
<td><span class="red-text">No</span></td>
<td>The border is <span class="css-value">transparent</span> and has a style of <span class="css-value">none</span></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">display</span></td>
<td><span class="red-text">No</span></td>
<td>Depends on the HTML element, but the most common are <span class="css-value">inline</span> and <span class="css-value">block</span><a id="fnref11" class="footnote-ref" href="#fn11"><sup>11</sup></a>.</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">width</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">auto</span></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">height</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">auto</span></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">box-sizing</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">content-box</span></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">font-size</span></td>
<td><span class="green-text">Yes</span></td>
<td><span class="css-value">medium</span> (<em>usually</em> 16px)<a id="fnref12" class="footnote-ref" href="#fn12"><sup>12</sup></a></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">font-family</span></td>
<td><span class="green-text">Yes</span></td>
<td>Depends on the browser</td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">font-weight</span></td>
<td><span class="green-text">Yes</span></td>
<td><span class="css-value">normal</span><a id="fnref13" class="footnote-ref" href="#fn13"><sup>13</sup></a></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">font-style</span></td>
<td><span class="green-text">Yes</span></td>
<td><span class="css-value">normal</span><a id="fnref14" class="footnote-ref" href="#fn14"><sup>14</sup></a></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">line-height</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">normal</span></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">text-align</span></td>
<td><span class="red-text">No</span></td>
<td>A <strong>nameless value</strong> that acts as ‘left’ if the text direction is left-to-right and ‘right’ if ‘direction’ is right-to-left.</td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">float</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">none</span></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="css-property">clear</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">none</span></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="css-property">content</span></td>
<td><span class="red-text">No</span></td>
<td><span class="css-value">normal</span></td>
</tr>
</tbody>
</table>
<h2 id="the-inherit-value">The ‘inherit’ Value</h2>
<p>You can force a child element to inherit its parent’s property by using the CSS value <span class="css-value">inherit</span>:</p>
<div id="cb6" class="sourceCode">
<pre class="sourceCode css"><code class="sourceCode css"><a id="cb6-1" class="sourceLine" title="1"></a><span class="fu">.important</span> {
<a id="cb6-2" class="sourceLine" title="2"></a>  <span class="kw">border</span>: <span class="dv">1</span><span class="dt">px</span> <span class="cn">red</span> <span class="dv">solid</span><span class="op">;</span>
<a id="cb6-3" class="sourceLine" title="3"></a>}
<a id="cb6-4" class="sourceLine" title="4"></a>
<a id="cb6-5" class="sourceLine" title="5"></a><span class="fu">.what-will-this-do</span> {
<a id="cb6-6" class="sourceLine" title="6"></a>  <span class="kw">border</span>: <span class="bu">inherit</span><span class="op">;</span>
<a id="cb6-7" class="sourceLine" title="7"></a>}</code></pre>
</div>
<p>When applied to the following HTML:</p>
<div id="cb7" class="sourceCode">
<pre class="sourceCode html"><code class="sourceCode html"><a id="cb7-1" class="sourceLine" title="1"></a><span class="kw">&lt;div</span><span class="ot"> class=</span><span class="st">"important"</span><span class="kw">&gt;</span>
<a id="cb7-2" class="sourceLine" title="2"></a>  <span class="kw">&lt;p</span><span class="ot"> class=</span><span class="st">"what-will-this-do"</span><span class="kw">&gt;</span>This is important!<span class="kw">&lt;/p&gt;</span>
<a id="cb7-3" class="sourceLine" title="3"></a><span class="kw">&lt;/div&gt;</span></code></pre>
</div>
<p>Will cause the child element to inherit the parent’s <span class="css-property">border</span> property:</p>
<div class="html-output">
<style>
  .x3-css-inheritance-important {
    border:1px solid red;
  }
  .x3-what-will-this-do {
    border: inherit;
  }
</style>
<div class="x3-css-inheritance-important">
<p class="x3-what-will-this-do">This is important!</p>
</div>
</div>
<h2 id="the-default-value">The ‘default’ Value</h2>
<p>If you want to reset an element’s property to its default value, you can use the CSS value <span class="css-value">initial</span><a id="fnref15" class="footnote-ref" href="#fn15"><sup>15</sup></a>.</p>
<p>Consider the following styling:</p>
<div id="cb8" class="sourceCode">
<pre class="sourceCode css"><code class="sourceCode css"><a id="cb8-1" class="sourceLine" title="1"></a>p {
<a id="cb8-2" class="sourceLine" title="2"></a>  <span class="kw">color</span>: <span class="cn">red</span><span class="op">;</span>  
<a id="cb8-3" class="sourceLine" title="3"></a>}
<a id="cb8-4" class="sourceLine" title="4"></a><span class="fu">.default</span> {
<a id="cb8-5" class="sourceLine" title="5"></a>  <span class="kw">color</span>: initial<span class="op">;</span>
<a id="cb8-6" class="sourceLine" title="6"></a>}</code></pre>
</div>
<p>When applied to the following code:</p>
<div id="cb9" class="sourceCode">
<pre class="sourceCode html"><code class="sourceCode html"><a id="cb9-1" class="sourceLine" title="1"></a><span class="kw">&lt;p</span> <span class="kw">&gt;</span>This is some styled text!<span class="kw">&lt;/p&gt;</span>
<a id="cb9-2" class="sourceLine" title="2"></a><span class="kw">&lt;p</span><span class="ot"> class=</span><span class="st">"default"</span><span class="kw">&gt;</span>This is some default styled text<span class="kw">&lt;/p&gt;</span></code></pre>
</div>
<p>Results in the following:<a id="fnref16" class="footnote-ref" href="#fn16"><sup>16</sup></a></p>
<div class="html-output x4">
<style>
  .x4 p {
    color: red;
  }
  .x4 .x4-default {
    color: initial;
  }
</style>
<div>
<p>This is some styled text!</p>
<p class="x4-default">This is some default styled text</p>
</div>
</div>
<h2 id="final-words">Final Words</h2>
<p>Child elements may inherit CSS values from their parents &#8211; it depends on the specific CSS property.</p>
<p>All HTML elements have default styles applied to them. Some of these styles are determined by browser settings, others from the CSS specification.</p>
<h2 id="references">References</h2>
<ol class="incremental" type="1">
<li><a href="https://www.w3.org/TR/html5/rendering.html">CSS Default Properties</a></li>
<li><a href="https://www.w3.org/TR/2011/REC-CSS2-20110607/propidx.html#q24.0">CSS Inheritance</a></li>
<li><a href="https://dxr.mozilla.org/mozilla-central/source/layout/style/res/html.css">Firefox’s Default Style Settings</a></li>
<li><a href="https://gist.github.com/ambidexterich/34828a904dd97dd2a345">Chrome’s Default Style Settings</a></li>
</ol>
<div class="prev">
<p><a href="https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/comments-in-html-and-css/">Prev</a></p>
</div>
<div class="next">
<p><a href="https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/advanced-css-selectors-part-1/">Next</a></p>
</div>
<div class="clear"></div>
<section class="footnotes">
<hr />
<ol>
<li id="fn1">The &lt;mark&gt; tag has a default <span class="css-property">color</span> of <span class="css-value">black</span>. The &lt;a&gt; tag default color is defined by the browser &#8211; it is usually <span class="css-value">#0000EE</span> for an unvisited link, <span class="css-value">#551A8B</span> for a visited link, and <span class="css-value">#EE0000</span> for a link you are hovering over.<a class="footnote-back" href="#fnref1">↩</a></li>
<li id="fn2">The &lt;mark&gt; tag has a default <span class="css-property">background-color</span> of <span class="css-value">yellow</span>.<a class="footnote-back" href="#fnref2">↩</a></li>
<li id="fn3">This is true for all the HTML elements we have seen so far. Some HTML elements we haven’t seen may have a non-zero default value.<a class="footnote-back" href="#fnref3">↩</a></li>
<li id="fn4">This is true for all the HTML elements we have seen so far. Some HTML elements we haven’t seen may have a non-zero default value.<a class="footnote-back" href="#fnref4">↩</a></li>
<li id="fn5">This is true for all the HTML elements we have seen so far. Some HTML elements we haven’t seen may have a non-zero default value.<a class="footnote-back" href="#fnref5">↩</a></li>
<li id="fn6">This is true for all the HTML elements we have seen so far. Some HTML elements we haven’t seen may have a non-zero default value.<a class="footnote-back" href="#fnref6">↩</a></li>
<li id="fn7">This is true for all the HTML elements we have seen so far. Some HTML elements we haven’t seen may have a non-zero default value.<a class="footnote-back" href="#fnref7">↩</a></li>
<li id="fn8">This is true for all the HTML elements we have seen so far. Some HTML elements we haven’t seen may have a non-zero default value.<a class="footnote-back" href="#fnref8">↩</a></li>
<li id="fn9">This is true for most HTML elements we have seen so far. For &lt;p&gt; tags it is equal to the font-size. The &lt;h1&gt; &lt;through &lt;h6&gt; also have default values for top and bottom margin that are non-zero &#8211; the specific value depends on the tag.<a class="footnote-back" href="#fnref9">↩</a></li>
<li id="fn10">This is true for most HTML elements we have seen so far. For &lt;p&gt; tags it is equal to the font-size. The &lt;h1&gt; &lt;through &lt;h6&gt; also have default values for top and bottom margin that are non-zero &#8211; the specific value depends on the tag.<a class="footnote-back" href="#fnref10">↩</a></li>
<li id="fn11">The following tags have a default <span class="css-property">display</span> of <span class="css-value">none</span>: &lt;head&gt;, &lt;title&gt;, and &lt;meta&gt;. The following tags have a a default <span class="css-property">display</span> of <span class="css-value">block</span>: &lt;html&gt;, &lt;body&gt;, &lt;h1&gt; through &lt;h6&gt;, &lt;img&gt;, &lt;ol&gt;, &lt;ul&gt;, &lt;li&gt;, and &lt;p&gt;. The following tags have a a default <span class="css-property">display</span> of <span class="css-value">inline</span>: &lt;strong&gt;, &lt;em&gt;, &lt;i&gt;, &lt;mark&gt;, and &lt;a&gt;.<a class="footnote-back" href="#fnref11">↩</a></li>
<li id="fn12">The &lt;h1&gt; through &lt;h6&gt; tags have varying default font sizes. Assuming 16px as the default font size: H1 = 32px, H2 = 24px, H3 = 19px, H4 = 16px, H5 = 13px, and H6 = 11px.<a class="footnote-back" href="#fnref12">↩</a></li>
<li id="fn13">The &lt;h1&gt; through &lt;h6&gt; and the &lt;b&gt; and &lt;strong&gt; tags have a default <span class="css-property">font-weight</span> of <span class="css-value">bold</span>.<a class="footnote-back" href="#fnref13">↩</a></li>
<li id="fn14">The &lt;i&gt; and &lt;em&gt; tags have a default <span class="css-property">font-style</span> of <span class="css-value">italic</span>.<a class="footnote-back" href="#fnref14">↩</a></li>
<li id="fn15">Yes, it would make more sense if it was called <span class="css-value">default</span>, but the CSS specification calls it <span class="css-value">initial</span>.<a class="footnote-back" href="#fnref15">↩</a></li>
<li id="fn16">If your default <span class="css-property">color</span> (set in the browser) is <span class="css-value">red</span>, then both outputs will be red.<a class="footnote-back" href="#fnref16">↩</a></li>
</ol>
</section>
<p>The post <a href="https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/css-understanding-inheritance-and-default-values/">CSS &#8211; Understanding Inheritance and Default Values</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
