Web pages are HTML for structure and CSS for appearance, and both are best learned by typing them and watching the page change. Each lesson here has an editor with a live preview beside it: what you write is the page. Press Run and the checks inspect the page itself, elements, attributes, and computed styles, and tell you what is missing.
The first module is HTML: headings, lists, links, images, semantic sections, tables. Then CSS: selectors, colors, classes, the box model, text. Then layout, which is where most of the difficulty lives: display, flexbox, grid, centering. The last module covers backgrounds, units, forms, and responsive rules, and ends in a project, a one-page site, that is not started from nothing: nine of the lessons produce a piece of it, saved in this browser as you go, and the project opens with all of them placed into one page for you to finish. Twenty lessons of about ten minutes.
What you will learn
- HTML elements, attributes, and semantic structure
- CSS selectors, colors, classes and ids
- The box model: padding, border, margin
- Text styling and units
- Flexbox and grid layout, centering
- Forms and responsive media queries
- A one-page site assembled from the pieces you built
The final project
The course ends with Project: a one-page site: a one-page site assembled from the pieces you built. 9 of the lessons build a part of it, saved in this browser as you go, so the project is assembled from your own work rather than started from nothing.
header(Semantic structure) is the page header, with the site title and the navigation.table(Tables) is the price list.type(Text styling) sets the page's type: the font, the centered heading, the lead paragraph, the uppercase subheadings..btn(Styling links and buttons) is the button-styled link, with the link colors and the hover rule..bar(Flexbox: alignment) is the toolbar under the header: logo, search, menu..gallery(Grid) is the three-column gallery..card(Backgrounds, borders, and shadows) is the about card with the round avatar.form(Forms) is the newsletter sign-up..cols(Responsive: media queries) is the two-column section that stacks on narrow screens.