Skip to the workspace
Pebellslearn by building
The Web and Markup  ›  Lesson

What Is a Markup Language?

What are markup languages? 12 minA markup language wraps plain text in labels that say what each piece of text is, so a program can structure and display it.

Set up HTML and run your first file

HTML describes the structure of a web page. A text editor and a browser are enough to create and view your first local page.

Already set up? Continue to the lesson

New to coding? Meet the tools and find the terminal
Text editor
Saves the source as plain text with the correct extension.
Browser
Reads HTML and CSS, builds the page, and provides developer tools.
Developer tools
Inspect the actual elements and applied styles when a change is missing.

A terminal is a window for commands. Its shell interprets those commands. PATH is the list of folders the shell searches for programs. An editor extension adds editing help; it usually does not install the language itself.

In VS Code, open your project folder, then choose View → Terminal. Type at the cursor in the Terminal panel, not in Output, the source file, or the browser address bar. Our command blocks omit prompt symbols such as $ and >; do not add them.

Official VS Code screenshot: the Terminal tab is selected below the editor, with the PowerShell shell name at the right and a command prompt at the left.
Find the Terminal tab and shell name. Open full-size screenshot (new tab).

The dropdown next to the plus button selects a shell. Choose the shell named in your operating-system instructions below. Available choices depend on what you installed.

Official VS Code screenshot: the arrow beside the terminal plus button opens a list containing PowerShell, Command Prompt, Git Bash and Ubuntu WSL.
Official documentation screenshots by Microsoft, VS Code terminal guide, CC BY 3.0 US. Unmodified; your version may look different.

Choose a system to see its installation steps. A computer is needed for these local setup instructions.

Official documentation and illustrated guides

Instructions reviewed 2026-10-27. Use the linked installer page for current versions and supported operating systems.

Continue to the lesson

html / What Is a Markup Language?

Explore each scene at your own pace.

01 · The rule

The rule

What Is a Markup Language?

A markup language wraps plain text in labels that say what each piece of text is, so a program can structure and display it.

Turn plain text into meaningful structure and distinguish markup from visual styling.

Open any web page, right-click and choose "View page source". Under the photos and buttons you will find plain text with little labels in angle brackets wrapped around it. Those labels are markup, and learning to read and write them is the first step in building for the web.

The rule

Markup labels what text is; it never computes anything.

A markup language takes ordinary text and adds labels that describe it. The label does not change the words; it tells a program what role those words play. "This is a heading." "This is a paragraph." "This is a link to another page."

HTML (HyperText Markup Language) is the markup language of the web. Here is a tiny piece of it:

<h1>Monsoon Recipes</h1>
<p>Three warm dishes for a rainy evening.</p>

The <h1> label marks the main heading. The <p> label marks a paragraph. A browser reads those labels and decides how to display each part: the heading big and bold, the paragraph as normal text.

Compare this with a programming language such as Python or JavaScript. A program can store values, repeat steps and make decisions. HTML can do none of that. It has no variables, no loops and no if. It only describes. That is why we call it a markup language, not a programming language.

Markup is older than the web. Word processors, typesetting systems and documentation tools have used it for decades. Markdown, the format this lesson is written in, is another markup language, just with lighter labels.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.