Complete for freeBeginner

Course 6

Web Development with HTML and CSS

You type every page yourself in VS Code, see it update the moment you save with the free Live Server extension, and look inside it with Chrome or Firefox DevTools. Every lesson shows code next to a live result, so you can see exactly what each tag and rule does. The course starts with how a browser turns a file into a page, then covers document structure, links, images and file paths, semantic landmarks, lists, tables, and accessible forms. Next come selectors, the cascade, specificity, and the box model, followed by Flexbox, Grid, responsive layouts, keyboard and screen reader access, typography, and sharing one stylesheet across several pages. Each module has a Notes lesson, a step-by-step build, and practice problems with hints and hidden solutions. The course ends with a capstone: a responsive multi-page website you plan, build, test, and publish.

Free completion promise: Every tool is free: VS Code, the Live Server extension, and Chrome or Firefox. Publishing the capstone uses a free hosting option, and no lesson needs a purchase, a paid account, or a domain name.

What's inside

  • 24hand-written lessons
  • 32videos
  • 113diagrams, charts & live previews
  • 52quiz questions
  • 181code examples

Before you begin

Requirements & setup for Web Development with HTML and CSS

Start with the complete free pathway below. Hardware, subscriptions, paid APIs, and cloud credits are never required.

Start here ยท free path

Your complete $0 setup

Every tool is free: VS Code, the Live Server extension, and Chrome or Firefox. Publishing the capstone uses a free hosting option, and no lesson needs a purchase, a paid account, or a domain name.

$0 required

Setup checklist

0 of 9 complete

This checklist is a temporary setup aid and resets when the page reloads. Saved course progress begins in the setup lessons below.

  1. Everything required for this course is free. Paid software, APIs, cloud credits, GPUs, and physical equipment are optional.

    About 2 min
  2. Download and install VS Code from code.visualstudio.com (on a Chromebook, turn on the Linux development environment first and install the .deb file).

  3. Open the Extensions view (Ctrl+Shift+X, or Cmd+Shift+X on a Mac), search for Live Server by Ritwick Dey, and install it.

    About 5 min
  4. Make a folder called first-page, open it with File โ€บ Open Folder, and create index.html.

    About 5 min
  5. Type ! and press Enter to generate a page skeleton, add an h1 heading, save, and click Go Live in the status bar.

    About 5 min
  6. Every lesson works in VS Code with the Live Server extension, so CodePen (free account) is never required.

  7. If you have CodePen (free account), use it where a lesson mentions it and compare your result with the lesson's.

    About 5 min
  8. If it doesn't match, finish that step in VS Code with the Live Server extension and keep going.

    About 5 min
  9. VS Code with the Live Server extension: Your page opens in the browser at an address starting with http://127.0.0.1:5500, and when you change the heading and save, the browser updates on its own. Right-clicking the heading and choosing Inspect shows it in the DevTools Elements (Chrome) or Inspector (Firefox) panel. CodePen (free account): Your page opens in the browser at an address starting with http://127.0.0.1:5500, and when you change the heading and save, the browser updates on its own. Right-clicking the heading and choosing Inspect shows it in the DevTools Elements (Chrome) or Inspector (Firefox) panel.

    About 5 min

Software

1 item

VS Code with the Live Server extension

VS Code is Microsoft's free code editor for Windows, macOS, and Linux, including Chromebooks with Linux turned on. Live Server, a free extension, serves your project folder at a local web address and reloads the browser every time you save. Chrome or Firefox DevTools let you inspect every element and see which CSS rules apply. On a computer where you can't install anything, CodePen in the browser covers single-page exercises.

Course need
VS Code with the Live Server extension
Free

VS Code is Microsoft's free code editor for Windows, macOS, and Linux, including Chromebooks with Linux turned on. Live Server, a free extension, serves your project folder at a local web address and reloads the browser every time you save. Chrome or Firefox DevTools let you inspect every element and see which CSS rules apply. On a computer where you can't install anything, CodePen in the browser covers single-page exercises. Every lesson is readable text with copyable code, keyboard-friendly quizzes and step-throughs, and videos with YouTube captions.

  1. Download and install VS Code from code.visualstudio.com (on a Chromebook, turn on the Linux development environment first and install the .deb file).
  2. Open the Extensions view (Ctrl+Shift+X, or Cmd+Shift+X on a Mac), search for Live Server by Ritwick Dey, and install it.
  3. Make a folder called first-page, open it with File โ€บ Open Folder, and create index.html.
  4. Type ! and press Enter to generate a page skeleton, add an h1 heading, save, and click Go Live in the status bar.

Hardware

1 item

CodePen (free account)

Optional. A browser-based editor for school Chromebooks and other computers that block installs. A free account lets you save your work; multi-file projects are easiest in VS Code.

Optional
VS Code with the Live Server extension
Free

Optional. Every lesson can be completed with VS Code with the Live Server extension; CodePen (free account) is an extra for learners who have it. Optional equipment: every assessed outcome can be completed without it.

  1. Every lesson works in VS Code with the Live Server extension, so CodePen (free account) is never required.
  2. If you have CodePen (free account), use it where a lesson mentions it and compare your result with the lesson's.
  3. If it doesn't match, finish that step in VS Code with the Live Server extension and keep going.

Accounts

Nothing required

No external account is needed for this course.

What you will be able to do

Learning outcomes

  • Explain how a browser requests a page, builds the DOM, and renders it, and use DevTools to inspect what it built.
  • Write valid, semantic HTML with headings, links, images with useful alt text, lists, tables, and forms where every field has a label.
  • Organize a project into folders and link files to each other with correct relative paths.
  • Predict which CSS rule wins using specificity and source order, and size elements precisely with the box model.
  • Lay out pages with Flexbox and Grid that adapt from phone to desktop and work with a keyboard.
  • Build and publish a consistent multi-page website that shares one stylesheet.

Build real work

Assignments & capstone

Free tools accepted

Two-page site with a card grid

Hand-code a two-page site in VS Code with Live Server: one page with an ordered heading outline, alt text, and working relative links, and one page of cards laid out with CSS Grid under a Flexbox navigation bar.

Every tool is free: VS Code, the Live Server extension, and Chrome or Firefox. Publishing the capstone uses a free hosting option, and no lesson needs a purchase, a paid account, or a domain name. Submit your project file, or screenshots with descriptions, or a short demo.

Responsive event page with a sign-up form

Build a mobile-first event page with header, nav, main, and footer landmarks, a schedule table, and a registration form with a label on every field, then make it work from 360px up and pass a keyboard and contrast check.

Every tool is free: VS Code, the Live Server extension, and Chrome or Firefox. Publishing the capstone uses a free hosting option, and no lesson needs a purchase, a paid account, or a domain name. Submit your project file, or screenshots with descriptions, or a short demo.

Final assessment

Responsive multi-page website

Build a site of three or more linked pages on a topic you choose, with semantic landmarks, one stylesheet built from design tokens, mobile-first Flexbox and Grid layouts, a labeled form, and full keyboard access, then publish it on GitHub Pages. Deliverables: Live GitHub Pages URL and repository link, Planning notes: goal, sitemap, wireframes, and tokens, Test log with one bug write-up, and Two- to three-minute presentation.

Prerequisites & pacing

Skills assumed

  • No web development or coding experience required
  • Comfortable creating folders, saving files, and downloading an app on your computer

Recommended prior courses

These are advisory, not locks. If you already have the skills listed above, enroll directly.

Choose your pace

  • self paced: 8 weeks at 4 hours per week
  • weekly: 8 weeks at 4 hours per week

Part of this learning path

Course created by Zafir Shamsi.