HTML (HyperText Markup Language) is the standard language used to create web pages. It is a markup language, not a programming language: it uses tags to label parts of a document so the browser knows how to structure and display them. Tags are written inside angle brackets. Most come in pairs, an opening tag like <p> and a closing tag like </p>, with content in between; together they form an element. Some elements are empty and have no closing tag, such as <br> for a line break and <img> for an image.
Key terms
- HTML
- markup language for structuring web pages
- Tag
- keyword in angle brackets, e.g. <p>
- Element
- opening tag, content and closing tag together
- Attribute
- extra information in an opening tag, e.g. src
- <head>
- section with information about the page
- <body>
- section with the visible content
- Empty element
- element with no closing tag, e.g. <br>
Summary
- HTML uses tags to structure web pages.
- A page has <!DOCTYPE html>, <html>, <head> and <body>.
- Attributes give extra details, e.g. src and alt for images.
- Save files as .html and view them in a browser.
In everyday life: Every website Ethiopians use, from news sites to university portals, is built on HTML underneath.
Check yourself
- Is HTML a programming language? Explain.
- What goes in the <head> section?
- Write the tag for the largest heading.
- What is an attribute? Give an example.
Practice questions
1. Which section of an HTML document contains the content shown in the browser window?
- A. <head>
- B. <title>
- C. <body>
- D. <meta>
Show answer
Answer: <body>
Visible content goes in <body>; <head> holds information about the page such as the title.
On WeLearn
The full lesson: reading notes, worked examples, class activities and the Unit 4 quiz
Study HTML Basics on WeLearnTeach HTML Basics with WeLearn
We will bring a demo to your school: a lesson on your interactive TV, a virtual lab and a classroom game, with your own teachers.
