What Is HTML? Your First Page
- 5 min reading
- 6 min activity
0 of 4 tasks doneup to 85 XP
Mission 1 continues. Today you write your first web page, run it and make it yours.
- Tell front-end and back-end work apart.
- Explain that HTML is a markup language made of tags.
- Write the basic structure of a page and run it.
The server sends HTML, CSS, JavaScript and pictures. Which program builds the page you see from these files? Think first, then open the answer.
Show the answer
Your browser. It reads the files and builds the page on your screen.
Front-end and back-end
Web work has two sides. The front-end is everything a visitor sees and uses: HTML gives the structure (what is a heading, what is a paragraph), CSS gives the look (colours, fonts, layout) and JavaScript decides what happens when you click.
The back-end works on the server, out of sight. When you tap "Buy", it updates the stock, sends the card details to the bank and saves the order in a database. Full-stack developers do both sides. This module is about the front-end.
Front-end or back-end?
An online shop has many jobs. Who does each one?
HTML is a markup language
HTML means HyperText Markup Language. It is a markup language, not a programming language. It does not calculate or decide. It says what each part is: "this is a heading", "this is a paragraph". HTML is the base of every web page.
HTML is made of tags: words between < and >. An element is an opening tag, the content and a closing tag. The closing tag has a slash.
<h1>Welcome</h1>
On a computer, press Ctrl+U or right-click and choose View page source: you see the HTML of any page. Phones usually do not have this option.
Where you write HTML
A web page is a text file whose name ends in .html. Developers write it in a code editor, a program for writing code. Add-ons called extensions refresh the browser when you save, tidy your code and rename the closing tag for you. Here, the editor and the browser are inside the lesson: you write, press Run and see your page.
Every page starts the same way
- Document type
<!DOCTYPE html>is not a tag. It tells the browser to use the modern standard mode. - Root
<html lang="en">holds the whole page. The attributelanggives its language. - Head
Information about the page, like the title in the browser tab.
- Body
Everything visitors see. A page has only one body.
<!DOCTYPE html>
<html lang="en">
<head>
<title>My first page</title>
</head>
<body>
<h1>Welcome</h1>
</body>
</html>
Go through the page one part at a time:
Anatomy of a page
Four parts of every page. Use Next to go through them.
Build it and run it
Now build the same page from its lines. Guess first, then put the lines in order.
Build the page skeleton
Put the nine lines in order: tap a line, then tap the place where it goes, or use the arrows. Then press Run and check.
When a check fails, read the message first: it says what happened, where, and the next small step. That is a real developer skill.
Make it yours
Write your own greeting in the heading, for example "Hello, I am Ayla". A nickname is fine. Add one paragraph of at least 5 words with <p> and </p>.
Make it yours
Your page from the last exercise. Write your own greeting in the h1, and add one paragraph of at least 5 words below it. Then press Run and check.
- Front-end
- The part of a website that visitors see and use: HTML, CSS and JavaScript.
- Back-end
- The part that works on the server: stock, payments, the database.
- Markup language
- A language that says what each part of a text is. HTML is one.
- Tag
- A word between < and >, like
<h1>. A closing tag has a slash:</h1>. - Element
- An opening tag, the content and a closing tag together.
- Code editor
- A program for writing code.
- Attribute
- Extra information inside an opening tag, like
lang="en".
In short
- Front-end: what visitors see. Back-end: what happens on the server.
- HTML is a markup language made of tags. It says what each part is.
- Every page:
<!DOCTYPE html>, then<html lang="en">with a head and one body.
Inside the head: the title, the character set, the phone view and a link to a CSS file.
Sources
- MDN Web Docs (2026). Introduction to the server side.
- MDN Web Docs (2026). HTML (glossary).
- MDN Web Docs (2026). Basic HTML syntax.
- MDN Web Docs (2026). Code editors.
- MDN Web Docs (2026). Doctype.
- MDN Web Docs (2026). Quirks mode and standards mode.
- MDN Web Docs (2026). lang.
- MDN Web Docs (2026). <body>: The Document Body element.
End of the lesson
This lesson: 0 of 95 XP
Code Cards in this lesson: 5
Element<!DOCTYPE html><html><head><body>