Skip to main content
← All courses

HTML and CSS

Build web pages you can see. No JavaScript in this course.

This course has seven small web pages. The first page is only words on a white background. The last page is a form that asks you questions and checks your answers. Every lesson gives you your own copy of the code beside the guide. Change the code and the page changes with it.

HTML and CSS are two different jobs. HTML says what each piece of a page is. A piece can be a heading, a paragraph, a picture, or a list. CSS says what each piece should look like. The first two lessons use no CSS on purpose. That lets you see what HTML does on its own. That is why those two lessons look plain.

You do not need an account. You do not need to install anything. A text editor and a browser are enough. Lesson 1 shows one Visual Studio Code shortcut. It is the one shortcut worth learning on your first day.

When you finish this course, go on to JavaScript. JavaScript makes these pages do things.

Who it's for
New programmers, about grade 4 to grade 8, and the adults who teach them. You do not need to know anything before lesson 1.

Tests and answer keys

Answer these on screen. The page marks them for you, question by question. It explains every answer you got wrong. Each test also links to a printable version.