HTML
HTML gives a webpage its structure, such as headings, paragraphs, and images.
Learn how webpages work, write your first HTML, add colourful CSS, and see your creation come alive.
A website is a page you can open in a web browser. Two important building blocks are:
HTML gives a webpage its structure, such as headings, paragraphs, and images.
CSS controls how a webpage looks, including colours, fonts, spacing, and layout.
HTML is like the walls and rooms. CSS is like the paint, decorations, and style.
Edit the HTML and CSS below. Then select Preview my website to see your changes.
Try changing the heading or your name. Use HTML tags such as h1, p, and button.
Try changing the heading colour or the background colour. Use CSS colour names or hex colours.
Your preview runs in a separate, sandboxed frame.
Choose the best answer for each question.
You've explored HTML, tried CSS, and built a webpage. Keep experimenting—great developers learn by creating and improving.
Explore Python lessons → Or try the Python Playground