Three Ways to Apply CSS
This div uses inline CSS applied directly with the style attribute.
This div uses internal CSS defined in the <style> tag in the head section.
This div uses external CSS from a separate .css file.
Priority Order
When multiple styles are applied to the same element, they follow this priority:
- Inline CSS (highest priority)
- Internal CSS
- External CSS
- Browser default styles (lowest priority)
This div has all three types applied. Inline (purple) overrides internal (green) which overrides external.