CSS Syntax
⭐ CSS Syntax (Short Explanation)
A CSS rule has 3 main parts:
✔ Selector → Which HTML element to style
✔ Property → What you want to change (color, font-size, margin…)
✔ Value → The setting for that property
Each declaration ends with a semicolon (;).
📌 Example
✔ Meaning:
-
This targets all
<p>(paragraph) elements -
Makes text red
-
Sets font size to 20px
