Week 7 - Session 2 - CSS (Cascading Style Sheets)
blog image source |
p {
color: red;}
The declaration block contains one or more declarations separated by semicolons. Each declaration includes a CSS property name and a value, separated by a colon. A CSS declaration always ends with a semicolon, and declaration blocks are surrounded by curly braces.
- CSS styles the HTML elements of a web page
- Cascading Style Sheets are simple text files
- Style sheets are made up of Rules
- Rules are made up of selectors and declarations.
- Declarations are made up of properties and values.
Learn CSS on Codecademy - https://www.codecademy.com/learn/learn-css