← Blog

Why HTML Is Not a Programming Language

Every website you open starts as a plain text file called HTML. Learn what a markup language is, how the browser reads and draws a page, what CSS and JavaScript add, and where to start learning for free.

Why HTML Is Not a Programming Language

What is HTML?

Every website you open, even YouTube and Instagram, starts as a plain text file called HTML. It stands for HyperText Markup Language.

Why HTML is not a programming language

A programming language can calculate and make decisions: add numbers, repeat a step, or say "if this happens, do that". HTML can't do any of that.
- It doesn't calculate: no math, no variables.
- It doesn't decide: no if statements, no loops.
- Its job is to describe: it tells the browser what each part of the page is.

Tags: the labels that describe a page

Every part of a page sits between labels called tags. For example:
- h1 for a heading
- img for an image
- button for a button
- p for a paragraph
Most tags have an opening and a closing tag, with the content in between.

How the browser reads a page

The browser reads the HTML file from top to bottom, line by line, and draws each tag in its place. The result is the page you see.

What about colors and motion?

- CSS handles the look: colors, fonts, spacing and layout.
- JavaScript handles motion and interaction: what happens when you click a button.
Both work on HTML elements. Without HTML there is no page, so there is nothing to style or animate.

Try it yourself: see any website from the inside

  1. On a computer: open any site and press Ctrl+U (Cmd+Option+U on Mac), or right-click and choose View page source.
  2. On Android Chrome: type view-source: before the site address.
  3. You'll see the HTML the browser used to draw the page.

Where to start learning

If you want to build websites, HTML is the first step and you can learn it in a few days. Below you'll find references and a free course with a certificate. Pick one and build a simple page about yourself.

More posts