Render Flow - Inline, internal, and external CSS
Load HTML file
Parse HTML
Find <style> block (internal CSS)
Parse internal CSS rules
Find elements with style="..."
Apply inline styles
Find <link rel="stylesheet"> (external CSS)
Fetch external CSS file
Parse external CSS rules
Combine all CSS rules
Calculate specificity and cascade
Apply final styles to elements
Layout and paint
The browser reads the HTML, then finds and parses internal CSS inside <style> tags, inline CSS inside style attributes, and external CSS linked via <link>. It combines all styles, resolves conflicts by specificity and order, then applies the final styles to elements before showing the page.