Skip to content
Kuza Ndoto Academy

HTML Introduction

BeginnerChapter 1 · Page 1 of 253 min readUpdated 15 Nov 2026

HTML (HyperText Markup Language) is the language every web page is written in. It describes the structure and meaning of content (this is a heading, this is a paragraph, this is a link) so that a browser can display it and people, search engines and screen readers can understand it.

What HTML is (and what it is not)

An HTML file is just a plain text file whose name ends in .html. Inside it, you wrap pieces of content in tags, short labels inside angle brackets. The tags are not shown on screen. Instead, they tell the browser what each piece of content is.

<h1>Karibu!</h1>
<p>I am learning to build websites.</p>

The browser reads this and shows Karibu! as a large, bold heading, with the sentence underneath as normal paragraph text. The <h1> tag says "this is the main heading" and <p> says "this is a paragraph".

index.html (plain text) <h1>Karibu!</h1> <p>I am learning to build websites.</p> Browser reads the tags What the visitor sees Karibu! I am learning to build websites.
Figure 1. You write tags in a text file; the browser uses them to decide how each piece of content is displayed, and the tags themselves stay hidden.

HTML is a markup language, not a programming language. It has no variables, loops or calculations. It simply marks up content. That makes it the gentlest place to start learning web development.

The three languages of the web

Almost every website you use, from a county government portal to an online shop, is built from three languages that work together:

LanguageJobHouse analogy
HTMLStructure and meaning of the contentThe walls, rooms and doors
CSSAppearance: colours, fonts, spacing, layoutThe paint, tiles and furniture
JavaScriptBehaviour: reacting to clicks, loading dataThe electricity and plumbing

You always start with HTML, because CSS and JavaScript need HTML elements to style and control. When you finish this series, continue with CSS and then JavaScript.

A short history

Tim Berners-Lee invented the World Wide Web while working at CERN, the European physics laboratory, and HTML was part of that invention. The first descriptions of HTML were published in the early 1990s, and the language has grown ever since. Today HTML is maintained by the WHATWG (Web Hypertext Application Technology Working Group) as the HTML Living Standard. "Living" means it is updated continuously instead of in big numbered versions. When people say "HTML5" they usually just mean modern HTML.

What an HTML page looks like

Here is a complete, tiny web page. Press Try it yourself, change the words, and press Run to see your changes.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>My first page</title>
  </head>
  <body>
    <h1>Karibu!</h1>
    <p>My name is Wanjiru and I am learning HTML.</p>
    <p>Next I will learn <a href="https://developer.mozilla.org">more about the web</a>.</p>
  </body>
</html>

The preview shows a large heading, two paragraphs, and an underlined blue link. Don't worry about every line yet. The Document Structure page explains the doctype, <html>, <head> and <body> one by one.

Tip

On any website, right-click and choose View page source (or press Ctrl+U) to see the HTML behind it. Real pages look busy, but you will recognise more and more tags as you go through this series.

Why HTML still matters

  • Every page needs it. Even sites built with frameworks such as React or Django finally send HTML to the browser.
  • Accessibility. Good HTML lets blind and low-vision users navigate with screen readers, and lets everyone use a keyboard.
  • Search engines. Google and others read your HTML to understand what a page is about.
  • Speed. Plain HTML loads fast, even on a slow mobile connection.

Key points

  • HTML is a markup language that describes the structure and meaning of web content.
  • Tags such as <h1> and <p> wrap content; the browser hides the tags and displays the content.
  • HTML gives structure, CSS gives appearance and JavaScript gives behaviour.
  • Modern HTML is the WHATWG's HTML Living Standard, often called HTML5.
Up next · Getting StartedHow Websites WorkBrowsers, servers, URLs and what happens when you open a page.
→

Tip: use the ← and → keys to move between pages.