HTML and CSS Foundations
Learning Path ⋅ Skills: Semantic HTML, The Cascade, The Box Model, Typography, Flexbox, Grid, Responsive Design, Accessible Forms, Accessibility Testing, Publishing on GitHub Pages
This learning path is for programmers who know JavaScript basics, or the equivalent in another language, and have met HTML and CSS without ever learning how they work. You’ll write plain HTML and CSS in Chrome or Edge with an editor’s live preview: no framework, no build step, and no JavaScript. The ideas you already know from programming get a quick name, and the time goes on what’s specific to markup and a declarative styling language.
Across seven courses, you’ll build one website for the Elm Street Community Garden. You’ll learn how the cascade decides which rule wins, how every element is a box, and how a parent lays out its children with Flexbox and Grid. Then you’ll make the site work on every screen, add forms that everyone can fill in, and check its accessibility with the keyboard, Lighthouse, and a screen reader.
Each course has exercises that automated tests check, and ends with a project on the garden’s site. In the final course, you’ll add an accordion, a popover, gentle motion, and a dark mode without JavaScript, then audit the site with Lighthouse and publish it on GitHub Pages. By the end, you’ll be able to build and publish a semantic, responsive, accessible site of your own.
HTML and CSS Foundations
Learning Path ⋅ 8 Resources
Is this path right for you? Mentor AI knows what’s in it and can help you decide where to begin.
Structure Web Pages With HTML
Start with HTML alone and build a community garden’s three linked pages, with no CSS yet. You’ll mark up text by what it means, add images, landmarks, and a data table, and catch the mistakes the browser quietly repairs with the validator and the Elements panel.
Course
Structuring Web Pages With HTML
Build a three-page website for a community garden in plain HTML, with headings, links, images, landmarks and a data table, and learn to check every page with the validator and the Elements panel.
Style Your Site and Give It a Design
With the garden’s pages in place, you’ll give them one shared stylesheet and learn to predict which rule wins in the cascade, and why. Then you’ll control the size and spacing of every box, set readable typography, and sort the stylesheet into cascade layers.
Course
Styling Pages With CSS: Selectors, the Cascade, and Inheritance
Give a community garden's website its first stylesheet, and learn to predict which CSS rule wins and why: selectors, the cascade, inheritance, custom properties and debugging in DevTools.
Course
Boxes, Type, and Visual Design With CSS
Control the size and spacing of every box, set readable typography, and give a garden's website a consistent design from a tidy stylesheet.
Lay Out Pages for Every Screen
Your site has a design, but every box still stacks in one column. Next, you’ll lay out each page with Flexbox and Grid, from the header and nav to card grids and a sidebar. Then you’ll rebuild the layout mobile-first so it works from a 320-pixel phone to a wide screen, with fluid sizes, responsive images, and container queries.
Course
CSS Layout With Flexbox and Grid
Lay out a full website with flexbox and grid: a header and nav, a page shell that fills the screen, card grids, a sidebar, and a sticky header, and learn to choose the right tool for each layout.
Course
Responsive Design and Modern CSS
Make a website work from a 320-pixel phone to a wide screen with mobile-first media queries, fluid type and spacing, responsive images, and container queries, and use modern CSS like :has() and nesting only where browser support makes it safe.
Build Forms Everyone Can Use
Now that the site works on every screen, you’ll let visitors sign up for work days and apply for a plot. You’ll build forms with a label on every field, input types that fit the data, and built-in validation, then check the whole site with the keyboard, DevTools, Lighthouse, and a screen reader.
Course
Forms and Accessibility in HTML and CSS
Build accessible HTML forms with input types that fit the data, built-in validation, and styles that match the site, then check a whole site for accessibility with the keyboard, DevTools, Lighthouse, and a screen reader.
Polish Your Site and Put It Online
Finally, you’ll finish the garden’s site with an accordion, a popover, gentle motion, and a dark mode, all without JavaScript. You’ll complete each page’s head, audit the site with Lighthouse, and publish it on GitHub Pages, and then you can plan and build a site of your own.
Course
Polishing and Publishing a Website
Finish the Elm Street Community Garden's site with built-in interactivity, motion that respects visitors' settings, a dark mode, and complete page heads, then check it with Lighthouse and publish it on GitHub Pages.
Test Your Knowledge
You’ve made it through the path! In the wrap-up quiz below, you’ll revisit the most important ideas, from how the browser reads your HTML and which CSS rule wins to boxes, Flexbox and Grid, responsive layouts, accessible forms, dark mode, and publishing. Use it to spot any topics that still feel rusty before you build your next site.
Interactive Quiz
HTML and CSS Foundations
Check what you learned in the HTML and CSS Foundations path: semantic HTML, the cascade, boxes, Flexbox, Grid, responsive design, and forms.
Congratulations on completing this learning path! You can now build a website in plain HTML and CSS: structure pages with semantic HTML, predict which CSS rule wins and why, control boxes and type, lay out pages with Flexbox and Grid, make them work on every screen, build forms that everyone can use, and publish the finished site on GitHub Pages.
To make your pages interactive next, continue with this learning path:
Got feedback on this learning path?
Looking for real-time conversation? Visit the RealJS Community Chat or join the next “Office Hours” Live Q&A Session. Happy coding!