Learn HTML and CSS: Part 2
Guide: How to Learn HTML and CSS as a Beginner: A Simple PlanThe follow-up to Learn HTML and CSS, in 8 short lessons. You learn tables, forms, the structure of a page, fonts, centring a box, hover effects, a page that fits on a phone, and CSS grid. Type code, see the result live and check your answer.
0 of 8 lessons done. Your progress is saved in this browser.
1. Tables
A table is made of rows. <table> is the whole table, <tr> is a row, <th> is a header cell and <td> is a normal cell.
Your task: Make a table with a header row and two more rows. Use <th> in the first row and <td> in the others.
Result
Your code stays in this browser. The preview cannot run scripts or open links.
Features
- 8 short lessons that build on the first course
- A live preview next to the editor
- Check my answer, a hint and the full answer for every lesson
- Your progress is remembered in this browser
How to use Learn HTML and CSS: Part 2
- Read the lesson and the task.
- Type your code in the editor and watch the result.
- Press Check my answer. Use the hint or the answer if you are stuck.
- Go to the next lesson.
Frequently asked questions
Do I need to finish the first course?
Yes, it helps. This course builds on Learn HTML and CSS: it assumes you know tags, colours, padding and flexbox. If you know those already, you can start here.
Does this teach JavaScript?
No. This course is only HTML and CSS. JavaScript, which makes a page do things, is a separate subject.
Why does the form not send anything?
The preview runs in a protected frame that cannot send data or run scripts. You practise how a form is built, not how it is processed.
Is my code saved?
Only which lessons you finished is saved, in this browser. The code you type is not stored or sent anywhere.