← Class Notes

CS · Week 5

Web Notes — HTML & CSS Essentials

Page structure, selectors, and box model.

HTML describes structure: headings, paragraphs, links, lists, and landmarks such as header and main.

CSS selects elements and sets color, type, spacing, and layout. Classes are reusable; ids should be unique.

The box model is content + padding + border + margin. Width can include or exclude padding depending on box-sizing.

Use semantic tags and alt text so pages work for screen readers and keyboards, not only for the mouse.

Practice