← the terminal · instructor

W08 // CSS: APPLYING AND SELECTING

OCT 7 · Ch 4 Sec 1-3 + Margaret Hamilton · DUE: Styled page with external sheet

This week's deckPPTX

// RUN OF SHOW (8:45-10:15)
8:45

Stand-up: last week's deliverable graded, questions answered

9:00

This week's presentation

9:20

At the keyboard: guided type-along

9:45

Build time: assignment or project work

10:10

Close: commit, push, and preview next week's reading

// THE POINT THIS WEEK
What CSS is. Inline, internal, external. Selector syntax: tags, classes, ids.
// TALKING POINTS
Style lives apart
  • HTML says what things are; CSS says how they look
  • Inline, internal, external: three homes for CSS, and external wins
  • One external sheet can restyle a hundred pages at once; that's the point
Selectors choose the target
  • Tag selectors hit every one: h1 { }
  • Classes are reusable labels: .warning, selected with a dot
  • Ids are one-of-a-kind: #masthead, selected with a hash
  • Specific beats general when rules collide; that's the cascade being fair
// LINKS