CSS doesn't exist on its own — it styles HTML, and it runs inside a browser. Before you write a single selector, it helps to know what you're styling and where those styles end up. Writing clean, well-structured markup makes your CSS shorter and easier to maintain, and understanding how the browser reads that markup explains many of the "why isn't this working?" moments you'll hit later.
This module starts with a beginner-friendly HTML crash course covering page structure, text, links, and images. It then focuses on semantic HTML — choosing elements like header, nav, main, and footer for their meaning rather than their looks — before showing how the browser turns your markup and styles into the DOM, CSSOM, and render tree that finally appear on screen. The module closes with a tour of Chrome DevTools, the tool you'll use throughout the rest of the course to inspect elements and live-edit CSS.
Watch the lessons in order, then continue on to CSS Fundamentals.
Programming with Mosh covers how the web works, the structure of an HTML document, text and entities, links, images, and a first look at inspecting a page with DevTools — everything you need to have markup worth styling.
Dave Gray walks through heading hierarchy and the semantic elements — nav, header, main, footer, article, section, aside — and why meaningful markup helps browsers, assistive technology, and your own selectors.
See how a browser parses HTML into the DOM, parses CSS into the CSSOM, and combines them into the render tree — the mental model behind why your styles apply, or don't.
The Chrome team's quick beginner tour of DevTools: inspecting DOM nodes, editing CSS in the Elements panel, simulating mobile devices, and using the Console — the toolkit you'll lean on for every module ahead.