Home / Learn HTML / HTML Introduction
HTML Introduction
HTML is the language that gives every web page its structure. If you can type, you can learn it.
Definition: what is HTML?
HTML stands for HyperText Markup Language. It is the standard language used to describe the structure and meaning of a web page. Every page you have ever opened in a browser, from a search page to an online shop, is built on HTML.
- HyperText means text that contains links to other text. Click a link and you jump to another page. This idea is the heart of the web.
- Markup means that you wrap parts of your text in labels called tags. The labels say what the text is: a heading, a paragraph, a link, an image.
- Language means there is a fixed set of words and rules that every browser understands.
HTML is not a programming language. It has no calculations, no if and else. It only describes content. Colours and layout come from CSS, and behaviour (clicks, animations, data) comes from JavaScript. Together they are the three building blocks of the web.
| Technology | Job | Example |
|---|---|---|
| HTML | Structure and meaning | This is a heading, this is a button |
| CSS | Looks and layout | The heading is green and centered |
| JavaScript | Behaviour | When the button is clicked, show a message |
Why learn HTML first?
Every web developer, designer, blogger and marketer meets HTML sooner or later. It is the easiest of the three technologies, it needs no installation (a browser and a text editor are enough) and the result is visible at once. Learning it first gives you the base on which CSS and JavaScript sit.
How a browser uses HTML
A browser downloads the HTML file, reads it from top to bottom, builds a tree of objects (the DOM) and then draws that tree on screen. If you make a mistake the browser does not stop; it tries to guess what you meant. This is friendly, but it can hide mistakes, so write clean code from the start.
Theory in plain words
What it is
HTML (HyperText Markup Language) is the language that describes the structure of a web page. It uses tags to say "this is a heading", "this is a link", "this is an image".
Why we use it
Every website, from a small blog to a big shop, is built on HTML. Browsers only understand HTML (plus CSS and JavaScript), so it is the first skill for any web developer.
How it works
You write text with tags in a file that ends in .html. The browser reads the file from top to bottom, builds a tree of elements (the DOM) and draws the page.
Where it is used
- Every website and web app
- Email newsletters
- Documentation and e-books
- Mobile apps that use web views
What is HTML?
HTML means HyperText Markup Language. It is not a programming language. It is a set of tags that tell the browser what each part of a page is: a heading, a paragraph, a picture, a link, a button.
- HyperText means text with links to other pages.
- Markup means you mark the text with tags.
- Language means browsers all agree on the same tags.
Your very first example
Below is a complete tiny page. The left side is the code and the right side is what the browser shows. Change the text inside the tags and press Run.
A heading and a paragraph. That is already a working page.
Replace the name and city with yours.
The a tag makes a clickable link.
An image needs a source address (src) and a text description (alt).
The style attribute changes how things look.
What can you build with HTML?
- Personal pages, blogs and portfolios
- Forms for contact, login and surveys
- Tables for prices and results
- Pages that play video and audio
- The base of every web app you will ever use
Headings, paragraphs, links and lists make most pages.
Do not worry about this yet. You will learn better layouts later.
Quick quiz
1. What does HTML stand for?
HTML means HyperText Markup Language.
2. Which one is a heading tag?
h1 to h6 are headings.
3. Is HTML a programming language?
HTML describes structure. It has no logic like loops.
Common questions
What does HTML stand for?
HyperText Markup Language. HTML means HyperText Markup Language.
Which one is a heading tag?
<h1>. h1 to h6 are headings.
Is HTML a programming language?
No, it is a markup language. HTML describes structure. It has no logic like loops.