HTML Introduction
Before you can build anything on the web — a portfolio, a blog, a business site — you need to understand HTML. This lesson explains what it actually is, clears up the most common confusion beginners have, and gets you writing your first code.
What is HTML?
HTML stands for HyperText Markup Language. It's the language your browser reads to display content on screen. When you visit any webpage — a news article, a YouTube video page, a shop — the browser is reading an HTML file and turning it into what you see.
The word "markup" is the key part. HTML doesn't do calculations or logic — it marks up content. You're essentially labelling pieces of text and telling the browser: "this is a heading", "this is a paragraph", "this is an image". The browser handles the rest.
HTML vs Programming Languages: A lot of beginners worry they need to "learn to code" before touching HTML. You don't. HTML is not code in the traditional sense — there's no logic, no calculations, no if-statements. It's closer to writing a document with labels. JavaScript is the programming language; HTML is just structure.
HTML works alongside two other technologies — CSS handles how things look (colours, fonts, spacing), and JavaScript makes things interactive (buttons, forms, animations). You'll learn those later. For now, HTML is where everything starts.
Key Things to Know About HTML
- HTML stands for HyperText Markup Language — it structures web content using tags.
- It is not a programming language — no logic, no calculations, just labels and structure.
- Every page you've ever visited on the internet has HTML underneath it.
- You can write HTML in any plain text editor — no special software needed to start.
- HTML files are just text files saved with a .html extension.
- Browsers like Chrome and Firefox read HTML files and render them as visual pages.
- HTML alone can create a working webpage — CSS and JS come later to improve it.
HTML Document Structure
Every HTML file has the same basic skeleton. Think of it as a template you start with every single time. Here's what it looks like — and below we'll explain each part:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>TipsInLearning — My First Page</title> </head> <body> <h1>Welcome to TipsInLearning!</h1> <p>This is my first paragraph of HTML.</p> </body> </html>
Try it now: Open Notepad on Windows (or TextEdit on Mac — make sure it's in plain text mode). Paste the code above exactly. Save the file as index.html — make sure to change "Save as type" to All Files, not Text Document. Then double-click the saved file. It opens in your browser as a real webpage. That's it — you just built something.
What Each Part Does
Let's go through the structure line by line so you know exactly what you're looking at:
Common Mistakes Beginners Make
These are the mistakes we see most often when people are just starting out. Knowing them now saves you a lot of frustration later.
This is the most common first mistake. In Notepad, if you don't change "Save as type" to "All Files", Windows quietly saves it as index.html.txt — and double-clicking it opens a text editor, not a browser. Always check the file extension before you close.
Word adds invisible formatting characters behind the scenes that completely break HTML. If you paste your code from Word into a browser, strange symbols appear or nothing works at all. Use Notepad, VS Code, or any plain text editor — never a word processor.
HTML tags almost always come in pairs — an opening tag <p> and a closing tag </p>. Forgetting the closing tag is a very common early mistake and can cause the whole rest of your page to display incorrectly. The browser tries to guess what you meant, and it doesn't always guess right.
You make a change, refresh the browser — nothing updates. The most likely reason: you forgot to save the file first. Ctrl+S (Windows) or Cmd+S (Mac) is your best friend when writing HTML.
Questions Beginners Ask
Real questions we get from people starting HTML for the first time: