CSS is a plain-text stylesheet language for controlling how HTML elements look. It can set colors, font sizes, fonts, and backgrounds while keeping presentation separate from HTML content. section 13.0
Imagine giving a coffee shop homepage a warmer welcome. A CSS rule such as `body { background-color: #e8d9b7; }` changes the page background in one place. Several stylesheets can also be combined, with later rules changing selected details. section 13.0
A small coffee shop stylesheet can:
- Give headings a shared font with `h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }`. section 13.0
- Change form colors with a selector such as `input[type="text"], select`. section 13.0
- Reuse existing stylesheets, then add project-specific changes in `coffeeshop.css`. section 13.0
Listing 13.2 static/css/coffeeshop.css: Add font to CSS
h1 {font-family: 'Playfair Display', serif;}
View a compact CSS rule that assigns a display font to a heading. section 13.0












