title: What is the difference between initial & default in CSS?
body: <p>I am reading this link and must say Mozilla is not trying to explain things! <a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_and_inheritance" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_and_inheritance</a></p>
  
  <p>So in the screenshot below, you see the default link has a different color than <code>initial</code> link. Default is just  element without any properties so it should inherit colour from browser's stylesheet. Cool. But the <code>initial</code> link should also inherit the blue color from browser default stylesheet, and instead, we have black. Please help understand.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
    color: green;
  }
  
  .my-class-1 a {
    color: inherit;
  }
  
  .my-class-2 a {
    color: initial;
  }
  
  .my-class-3 a {
    color: unset;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li&gt;Default &lt;a href="#"&gt;link&lt;/a&gt; color&lt;/li&gt;
    &lt;li class="my-class-1"&gt;Inherit the &lt;a href="#"&gt;link&lt;/a&gt; color&lt;/li&gt;
    &lt;li class="my-class-2"&gt;Reset the &lt;a href="#"&gt;link&lt;/a&gt; color&lt;/li&gt;
    &lt;li class="my-class-3"&gt;Unset the &lt;a href="#"&gt;link&lt;/a&gt; color&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/tXygc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tXygc.png" alt="enter image description here"></a></p>