I have a specific class that is being styled in multiple places on my website. I am curious about the order in which the browser reads and applies these different styles. Can you explain this process to me?
Inline Style
<div class="yellowtag" style="background: yellow;">This is yellow</div>
First CSS File
// First instance inside of style.css .yellowtag { background: yellow; }
Second Instance in First CSS File
// Second instance inside of style.css .yellowtag { background: yellow; }
Second CSS File (after the first .yellowtag rule)
// style2.css .yellowtag { background: yellow; }
In the HTML Head
<head> <style> .yellowtag { background: yellow; } </style> </head>