1
HTML/CSSBeginner#css#selectors
Inline styles (style attribute) apply to a single element and have the highest specificity but are hard to maintain and can't be cached. Internal <style> in <head> applies to the whole page but isn't reusable across pages. External stylesheets (<link>) are cacheable, reusable across pages, and keep concerns separated — the recommended approach for production.
<link rel="stylesheet" href="styles.css">
<style>.local { color: red; }</style>
<p style="color: blue;">Inline</p>