<!-- This link element is declared after the CSS in the editor so will be more specific -->
<link rel="stylesheet" href="https://codepen.io/web-dot-dev/pen/abpoXGZ.css" />
<main>
<div class="wrapper">
<article class="flow">
<h1>Cascade position order</h1>
<figure class="callout">
<p>The <code><style></code> element is declared in the <code><head></code>, while the <code><link></code> element is declared in the <code><body></code>. This means the <code><link></code> gets more specificity than the <code><style></code> element and the blue hex code (<code>#3740ff</code>) is applied to the button’s background.</p>
</figure>
<button class="button">
My background has been set by the second link element.
</button>
</article>
</div>
</main>
/* This CSS is declared before the <link>, so is less specific. */
.button {
background: #ff00ff;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.