Session 8: CSS Fundamentals
CSS (Cascading Style Sheets) controls the appearance of websites. HTML is structure, CSS is beauty!
Comparison: HTML = skeleton, CSS = skin, hair, clothes!
CSS has a simple structure: selector { property: value; }
p = selector (which HTML elements)
color = property (what to change)
blue = value (what to change it to)
Specify colors in three ways:
Tip: Use hex codes for precise colors
Give CSS instructions for specific elements using classes and IDs.
Two important spacing concepts:
Make your website use beautiful fonts!
Popular fonts: Poppins, Roboto, Open Sans, Playfair Display
Make elements change when you hover over them!
When user hovers over a link, it turns red! Perfect for buttons.
Websites should look good on phones AND computers!
For now: set max-width and use padding instead of fixed widths
Pre-made CSS libraries that speed up development:
For beginners: Write your own CSS first to understand it!
You can now build and style websites!
Next Chapter: Professional Skills & Assessment