HTML (HyperText Markup Language) is the language of web pages. It uses tags in angle brackets — usually a pair like <p> ... </p>. Edit the live examples and press Run to see your page render instantly.
1Page skeleton & text formatting
Every HTML5 page has the same four-tag skeleton:
<html> <head><title>My Page</title></head> <body> ...visible content... </body> </html>
| Tag | Does |
|---|---|
<h1>…<h6> | Headings (h1 largest → h6 smallest) |
<p> | A paragraph |
<br> / <hr> | Line break / horizontal rule |
<strong> | Important text (bold) |
<em> | Emphasised text (italic) |
Try it — edit and Run:
- The HTML skeleton is <html>, <head>, <title>, <body>.
- Headings <h1>–<h6> (h1 largest); <p> for paragraphs; <br> line break; <hr> horizontal rule.
- <strong> marks important text (bold); <em> marks emphasis (italic) — the modern HTML5 way.
2Lists
Two kinds of list, each holding items written with <li>:
- Ordered list
<ol>— numbered (1, 2, 3). - Unordered list
<ul>— bulleted.
Edit the list below and Run:
- <ol> makes a numbered list; <ul> makes a bulleted list.
- Each item is written with <li> ... </li>.
- Use ordered lists when sequence matters, unordered when it doesn't.
3Images & links
The <img> tag inserts an image (it's an empty tag):
<img src="logo.png" alt="Logo" width="120" height="80">
The anchor tag <a> makes a hyperlink:
- External link — to another website:
<a href="https://vidaara.org"> - Internal link — to another page on your own site:
<a href="about.html">
Run this to see an image and links:
- <img> inserts an image; src (the file) is required, plus alt, width, height.
- <a href="..."> makes a hyperlink; the text/image between the tags is clickable.
- External links go to another website; internal links go to another page on your own site.
★ Practical: a profile page
Build one HTML page with:
- A title, an <h1> heading and two paragraphs using <strong> and <em>.
- An ordered list and an unordered list.
- An image with src, alt, width and height.
- An external link that opens in a new tab.
Ready for the chapter test?
Answer 5 questions. Score 60% or more to mark this chapter complete.
Start the test →💡 Log in to save your progress and earn the certificate.