Can a text file become a page?
By the end of this lesson
Tell HTML (structure) from CSS (style), and read a 5-line page: title, heading, paragraph, colour.
Remember
- HTML = structure (heading, paragraph, image, link).
- CSS = style (colour, size, layout).
- A tag usually comes in a pair: <p>…</p>.
- <h1> is a main heading. <p> is a paragraph. <img> shows a picture.
- Every site you open is (at least) HTML + CSS in the browser.
Worked examples
Cover the answer. Try the steps on paper, then open them.
Example 1 — Read a page
<h1>Garden</h1> <p>We grow tomatoes.</p>
- h1 shows a big title Garden
- p shows a normal paragraph
- The browser draws this as a simple page
Answer: heading + paragraph
Check: Structure first, pretty later.
Example 2 — Who does what
Make the heading blue and the text larger.
- HTML already said “this is a heading”
- CSS says h1 { color: blue; font-size: 32px; }
- Do not use HTML only to make things pretty if you can help it
Answer: HTML structure, CSS style
Check: Separation makes changes easy.
Example 3 — Broken tag
<p>Hello with no </p>.
- The browser guesses, and later pieces may look wrong
- Close your tags
- Beginners’ most common slip after quotes in Python
Answer: close the tag
Check: Pairs: open and close.
Common mistakes
Slip Putting a whole essay in one <h1>.
Fix h1 is the title. Paragraphs use p.
Structure must match meaning.
Slip Saying CSS is a programming language like Python.
Fix CSS is a style language. It does not do general if/loops the way Python does.
Different tool.
Slip Using <img> with no picture file and wondering why a box is empty.
Fix The src must point to a real file or URL.
Path lesson again.
Try on paper first
Write the answer, then tap Reveal. These are not the quiz — they are warm-ups.
1. HTML is for…
Answer: Structure of a page
2. CSS is for…
Answer: Style / look
3. Which tag is a main heading?
Answer: h1
4. A paragraph tag is…
Answer: p
Touch practice
9 tap / typeTap or type. Use the hint if you need it. Retry any miss — the why is the lesson.
Optional picture lab
After practiceReal world
Every website you open.
Connect
Structure (HTML) + style (CSS).
⭐ Star quiz
9 questionsDo the worked examples and touch practice first. Then take the quiz without peeking.