- Home
- /
- Tutorials
- /
- HTML Tutorial
- /
- Introduction to HTML
HTML Basics
Introduction to HTML
HTML is the language every web page is written in. It is not a programming language; it is a way of labelling content: this is a heading, this is a paragraph, this is a link, this is an image. Browsers read those labels and draw the page.
The name stands for HyperText Markup Language. "HyperText" means text with links to other text; "markup" means you mark up your content with tags. On its own, HTML gives structure. CSS adds the design, and JavaScript adds behavior.
A short history
Tim Berners-Lee created HTML in 1991 to share documents between scientists. Since then it has grown step by step:
- HTML 1.0 → Basic text formatting.
- HTML 2.0 / 3.2 / 4.01 → Introduced forms, tables, and more complex formatting.
- HTML5 → Modern standard with semantic tags, multimedia support, and APIs.
Today there are no more numbered versions. HTML is a "living standard" that browsers update continuously, and HTML5 is simply what people call modern HTML.
Your first page
HTML Example
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First HTML Page</title>
</head>
<body>
<h1>Welcome to HTML Tutorial</h1>
<p>This is a simple introduction to HTML.</p>
</body>
</html><!DOCTYPE html>tells the browser this is a modern HTML page.<html lang="en">wraps the whole page and says it is in English.<head>holds information about the page: the character set, the mobile viewport line and the title shown in the browser tab.<body>holds what you see: here a heading and a paragraph.
Each part is explained in HTML Structure.
Running your HTML
You do not need any special software to see your page, just a browser such as Chrome, Firefox, Edge or Safari. Save your code in a file ending in .html, like index.html, and double-click it. It opens in your default browser:

To change the page, edit the file in your text editor, save it, and press F5 in the browser to reload. Keep the editor and the browser side by side and you can work fast. Choosing an editor is covered in HTML Editors.
If you do not want to save files at all, use our Try It Editor, where you type HTML on one side and see the result on the other.
Tips for your first pages
- Close every tag you open:
<p>needs</p>. - Indent nested tags, so the structure is easy to see.
- Use tags for what the content is, not how it looks: a heading tag for headings, not just big bold text.
- Do not worry about design yet. Get the structure right first; CSS comes next.
Browser Support
Chrome | Edge | Firefox | Safari | Opera | IE9+ |
|---|---|---|---|---|---|
| Yes | Yes | Yes | Yes | Yes | Yes |
Introduction to HTML exercises
Your first heading and paragraph
Write a main heading that says Hello, HTML and below it a paragraph that says I am learning to build web pages.
Result
