Everything you see on a web page (headlines, paragraphs, images, buttons, forms) starts life as an HTML document. Before you write your first tag, it is worth understanding exactly what HTML is, what problem it solves, what it does not do and how it fits together with the other two core technologies of the web: CSS and JavaScript. In this lesson you will build that mental map and meet the project that will accompany you throughout the course: the website for The Blue Cup, a neighbourhood café and bakery.

Contents

  1. HTML in a sentence
  2. Markup languages versus programming languages
  3. HTML, CSS and JavaScript: the three layers of the web
  4. How a page reaches your screen
  5. A brief history of HTML: from 1991 to the HTML Living Standard
  6. A first look at a snippet of HTML
  7. The course project: The Blue Cup

HTML in a sentence

HTML stands for HyperText Markup Language. Let's break the name down:

  • HyperText: text that contains links to other texts. This is the central idea of the web: documents connected to one another through hyperlinks.
  • Markup: annotations added to a text to indicate what each part is ("this is a title", "this is a paragraph", "this is an image").
  • Language: an agreed set of rules and vocabulary so that any browser understands those annotations in the same way.

In short: HTML describes the structure and meaning of the content of a web page. It does not choose colours or typefaces, nor does it react to the user's clicks; it simply states what each thing is.

Markup languages versus programming languages

A very common misconception among beginners is that HTML is a programming language. It isn't, and understanding the difference will help you know what to expect from it.

A programming language (JavaScript, Python, Java…) is used to give instructions that are executed: performing calculations, making decisions (if X happens, do Y), repeating actions, storing data in variables. A markup language is used to label content that already exists, so that a program (the browser) knows how to interpret it.

Feature Markup language (HTML) Programming language (JavaScript)
Purpose Describe and structure content Express logic and behaviour
Does it have variables? No Yes
Does it have conditions and loops? No Yes (if, for, while…)
Does it perform calculations? No Yes
What does it produce? A structured document The result of executing instructions
If you make a mistake… The browser usually "forgives" you and shows something anyway An error usually appears and the program stops

A useful analogy: think of a printed text that an editor marks up with a pen. The editor doesn't change the words; they write notes in the margin such as "this is the title", "this goes in bold", "a photo goes here". HTML is exactly that: the notes in the margin, but written in a standard way that a computer understands.

Note: the fact that HTML is not a programming language doesn't mean it is "less important" or trivial. Well-written HTML is the foundation of accessibility, of search engine optimisation (SEO) and of CSS and JavaScript working properly.

HTML, CSS and JavaScript: the three layers of the web

Modern web pages are built by combining three technologies, each with a different responsibility. They are often compared to a house:

Technology Responsibility House analogy Example at The Blue Cup
HTML Structure and meaning of the content Walls, rooms, doors "This is the café's name, this is the list of coffees, this is the price"
CSS Presentation: colours, typefaces, sizes, layout Paint, furniture, decoration "The name is blue, in large type and centred"
JavaScript Behaviour and interactivity Electrics, plumbing, home automation "When 'Book' is clicked, check that the date is in the future"

Some key ideas about this separation:

  • HTML is essential; CSS and JavaScript are optional. A page with only HTML works (it looks plain, but it works). A page without HTML doesn't exist.
  • Each layer builds on the one before. CSS styles HTML elements; JavaScript manipulates HTML elements. If the structure is poor, everything else becomes harder.
  • Separating responsibilities makes maintenance easier. If The Blue Cup changes its brand colour tomorrow, you will only touch the CSS, not the content.

This course focuses on HTML. In Module 8 you will see how to connect HTML with CSS; JavaScript is outside the scope of the course.

How a page reaches your screen

When you type an address such as https://thebluecup.example into the browser, a sequence of steps takes place that is worth knowing, at least in broad terms:

sequenceDiagram
    participant U as User
    participant N as Browser
    participant S as Web server
    U->>N: Types thebluecup.example and presses Enter
    N->>S: HTTP request: "give me the home page"
    S-->>N: Response: index.html file
    N->>N: Reads (parses) the HTML and builds the element tree
    N->>S: Requests linked resources (CSS, images...)
    S-->>N: Sends those resources
    N->>U: Draws (renders) the page on screen

Step by step:

  1. Request: the browser (Chrome, Firefox, Edge, Safari…) sends a request to the server where the site is hosted.
  2. Response: the server returns a text file: the HTML document.
  3. Parsing: the browser reads the HTML from top to bottom and interprets the tags, building a tree-shaped structure in memory (you will look at it in detail in the lesson Basic Structure of an HTML Document).
  4. Additional resources: if the HTML mentions stylesheets, images or videos, the browser requests those too.
  5. Rendering: with all of that, the browser "paints" the page on the screen.

One important detail: HTML is plain text. It is not a binary or compiled format. That is why you can write it with any text editor, and why any browser lets you view the source code of any page. Throughout the course you will work locally (files on your computer opened directly in the browser), without a server; in Module 11 you will see how to publish the site.

A brief history of HTML: from 1991 to the HTML Living Standard

You don't need to memorise dates, but knowing how HTML evolved explains why it is the way it is today:

Year Milestone What it brought
1989-1991 Tim Berners-Lee, at CERN, proposes and publishes the World Wide Web The first tags: headings, paragraphs, links
1995 HTML 2.0 First formal specification; basic forms
1997 HTML 3.2 and HTML 4.0 (W3C) Tables, scripts, stylesheets; separation of structure and presentation
2000 XHTML 1.0 HTML with the strict rules of XML
2004 The WHATWG is founded (Apple, Mozilla, Opera) Work on a practical evolution of HTML
2014 HTML5 becomes a W3C Recommendation Native video and audio, semantic elements, new form input types
2019 The W3C and WHATWG agree on a single specification The WHATWG's HTML Living Standard becomes the official reference

Today there are no longer numbered "versions": HTML is a Living Standard that is updated continuously at html.spec.whatwg.org. When people say "HTML5", in practice they mean the modern HTML you will use in this course.

Tip: for day-to-day reference, the MDN Web Docs documentation (developer.mozilla.org) is more approachable than the official specification and is an excellent place to look things up.

A first look at a snippet of HTML

Let's look at a small snippet of HTML. Don't worry about understanding every detail: in the coming lessons you will learn the complete structure of a document and the precise syntax.

<h1>The Blue Cup</h1>
<p>Speciality coffee and handmade pastries in your neighbourhood.</p>
<p>We are open every day from <strong>8:00 to 20:00</strong>.</p>

Line-by-line reading:

  • <h1>The Blue Cup</h1>: the text "The Blue Cup" is marked up as the page's main heading. <h1> opens the markup and </h1> closes it.
  • <p>…</p>: marks up a paragraph of text.
  • <strong>8:00 to 20:00</strong>: inside the second paragraph, it indicates that the opening hours are important. The browser usually displays this in bold.

Notice the pattern that repeats: an opening mark, some content and a closing mark. That pattern is the heart of HTML, and you will study it in depth in Tags, Elements and Attributes.

If this snippet were opened in a browser, you would see something like this: a large title, with two lines of normal text below it and the opening hours in bold. Notice that we haven't said "large" or "bold" anywhere: the browser decides that with its default styles, based on the meaning we have given the content.

The course project: The Blue Cup

Learning HTML with isolated examples is fine, but you learn far more by building something real. Throughout the course you will create the website for The Blue Cup, a fictional neighbourhood café and bakery that serves speciality coffee and home-made pastries.

These are the pages the site will have when you finish:

Page File Content Modules where it is worked on
Home index.html Introduction to the café, opening hours, highlights 1, 2, 6
Menu menu.html Coffees, pastries and prices 2, 4
Bookings bookings.html Form for booking a table 5, 11
Gallery gallery.html Photos of the premises, a video and an audio clip 3, 9
News news.html Blog-style articles 6, 7
Contact contact.html Address, phone number and email 3, 6

The café's details (all fictional; use them whenever you need them):

  • Domain: thebluecup.example
  • Email: [email protected]
  • Phone: +34 900 000 000
  • Address: 12 Example Street, Fictional Town

Why .example? It is a domain reserved for documentation and examples: it will never belong to anyone real, so there is no risk of accidentally linking to someone else's site.

In the next lesson you will set up your environment and create the project folder, the-blue-cup/. In Creating Your First HTML Page you will write its index.html, and in File Organisation and Paths you will organise the css/, img/ and media/ subfolders.

Common Mistakes and Tips

  • Calling HTML a "programming language": in a technical interview, it's the kind of detail people notice. Say "markup language".
  • Using HTML to control appearance: choosing a tag because it "looks bigger" or "comes out in bold" is a classic mistake. Choose the tag for what the content is; you will handle appearance with CSS.
  • Thinking that if the browser displays it, it must be fine: browsers are very tolerant of HTML errors and will usually show something even if the code is wrong. That doesn't mean it is correct (you will check this in Module 10 with the validator).
  • Looking for "the current version of HTML": there is no HTML6 on the horizon; there is the HTML Living Standard, which evolves continuously.
  • Tip: get into the habit of viewing the source code of the websites you visit (you will learn how in the next lesson). It is one of the best ways to learn.

Exercises

Exercise 1. Markup or programming? Classify each task according to the technology that would handle it: HTML, CSS or JavaScript.

  1. Indicating that "Coffee Menu" is the title of a section.
  2. Making all the prices appear in brown.
  3. Showing a warning if the user tries to book for a date in the past.
  4. Indicating that a piece of text is a paragraph.
  5. Placing the navigation menu horizontally across the top.

Exercise 2. Read the markup. Look at this snippet and answer: how many paragraphs are there? Which text is the main heading? Which part is marked up as important?

<h1>Today's Pastries</h1>
<p>Today we have croissants, muffins and lemon sponge cake.</p>
<p>The croissants come out of the oven at <strong>9:00</strong>.</p>

Exercise 3. Put the process in order. Arrange these steps describing how the browser displays a page: (a) renders the page, (b) receives the HTML file, (c) sends a request to the server, (d) parses the HTML and requests additional resources.

Solutions

Solution 1.

Task Technology Why
1. Section title HTML It describes what the content is
2. Prices in brown CSS It is visual presentation
3. Past-date warning JavaScript It requires logic (comparing dates) and reacting to an action
4. It is a paragraph HTML Structure of the content
5. Horizontal menu CSS It is visual arrangement (layout)

Typical mistake: answering "HTML" for task 5 because the menu "is in the HTML". The menu exists thanks to HTML, but where and how it is placed is decided by CSS.

Solution 2. There are two paragraphs (two <p>…</p> pairs). The main heading is "Today's Pastries" (inside <h1>). "9:00" is marked up as important (inside <strong>).

Solution 3. The order is: (c) → (b) → (d) → (a). First the page is requested, then the HTML arrives, next it is parsed (and CSS, images, etc. are requested) and, finally, it is drawn.

Conclusion

HTML is the markup language that describes the structure and meaning of web content: it doesn't program or decorate, it states what each thing is. Together with CSS (presentation) and JavaScript (behaviour), it forms the three layers of every page. You have seen how the browser requests, parses and draws an HTML document, why today we talk about the HTML Living Standard and what a snippet of markup looks like. You have also met The Blue Cup, the site you will build step by step. In the next lesson, Setting Up Your Work Environment, you will install a code editor, prepare your browser and create the project folder so you can start writing real HTML.

HTML Course

Module 1: Introduction to HTML

Module 2: Text Formatting in HTML

Module 3: Links and Media in HTML

Module 4: Tables in HTML

Module 5: Forms in HTML

Module 6: HTML5 Semantic Elements

Module 7: Advanced HTML Techniques

Module 8: Integrating HTML and CSS

Module 9: Responsive Web Design

Module 10: Best Practices and Accessibility

Module 11: Project: Building a Complete Website

© Copyright 2026. All rights reserved