Your first page: a heading and a paragraph
A web page is just text with labels wrapped around it. The labels are called
tags, and they tell the browser what a piece of text is - not what it should
look like. <h1>Hello</h1> says "Hello is the main heading of this page". The
browser already knows headings should look big and bold, so it draws it that
way without being asked.
A tag comes in a pair. <h1> opens it, </h1> closes it, and the text sits
between them. Forget the slash on the closing tag and the browser will not
raise an error - it will just keep treating everything after it as a heading.
That is worth knowing early: HTML almost never tells you that you are wrong. It
guesses, draws something, and moves on.
The preview on the right is a real browser window. Change the text, press Run,
and it redraws.
Your task: the page has a heading but nothing else. Add a paragraph under
it, using <p> tags, that reads exactly I am learning HTML.
You'll practice:
- Wrapping text in a tag pair so the browser knows what it is
- Reading the preview as the answer to what you wrote
Related reading: Your First Page: Elements, Tags, and Structure →