What is CSS?
CSS stands for Cascading Style Sheets. It controls the visual presentation of HTML elements — colours, fonts, spacing, layout, and more.
The Relationship: HTML + CSS
- HTML = structure (the skeleton)
- CSS = style (the clothing)
Three Ways to Add CSS
- Inline —
styleattribute on an element (lowest priority to maintain) - Internal —
<style>block in the<head> - External — Separate
.cssfile linked with<link>(best practice)