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.

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.

TechnologyJobExample
HTMLStructure and meaningThis is a heading, this is a button
CSSLooks and layoutThe heading is green and centered
JavaScriptBehaviourWhen 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

The three layers of a web pageHTML: structure and content (what is on the page)CSS: design (colours, layout, fonts)JavaScript: behaviour (clicks, data, animation)
The three layers of a web page

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.

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.

Hello WorldTry it Yourself

A heading and a paragraph. That is already a working page.

Change the wordsTry it Yourself

Replace the name and city with yours.

Many headingsTry it Yourself
A linkTry it Yourself

The a tag makes a clickable link.

A buttonTry it Yourself
A pictureTry it Yourself

An image needs a source address (src) and a text description (alt).

A listTry it Yourself
A little colourTry it Yourself

The style attribute changes how things look.

What can you build with HTML?

Tip:You do not need to install anything. Every example on this site runs in your browser.
Add a bit of everythingTry it Yourself

Headings, paragraphs, links and lists make most pages.

Two columns without any CSS skillsTry it Yourself

Do not worry about this yet. You will learn better layouts later.

Quick quiz

1. What does HTML stand for?

2. Which one is a heading tag?

3. Is HTML a programming language?

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.

My notes
Ask a question about this lesson