Learn HTML and CSS
Guide: How to Learn HTML and CSS as a Beginner: A Simple PlanA small course in 8 short lessons. Each lesson explains one idea, gives you a task, and shows the result of your code live next to the editor. You learn tags, headings, links, pictures, lists, colours, spacing and flexbox, and end with a page of your own.
0 of 8 lessons done. Your progress is saved in this browser.
1. Your first tag
HTML is the language of web pages. You put text between tags: an opening tag like <p>, the text, and a closing tag like </p>. A <p> is a paragraph.
Your task: Add a second paragraph with your own text.
Result
Your code stays in this browser. The preview cannot run scripts or open links.
Features
- 8 short lessons, from your first tag to your own page
- 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
- 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 install anything?
No. You type in the box and see the result next to it, all in your browser. There is nothing to install and no account.
Is this course enough to build a website?
It teaches the basics of HTML and CSS: tags, headings, links, pictures, lists, colours, spacing and flexbox. That is a good start. For a real website you will also want to learn more CSS, and JavaScript for behaviour.
Is my code saved?
Only which lessons you finished is saved, in this browser. The code you type is not stored or sent anywhere, so it is gone when you close the page.
What happens when I press Check my answer?
The page reads your code and looks for what the task asks, for example a second paragraph or a CSS rule with a colour. If you are stuck, open the hint or show the answer.