# Markup Language

> Tags on parts of a text, like a title or a link. An app reads the tags to show it.

**Field:** Software Development  
**Category:** Languages  
**Also known as:** Markup, Mark-up Language

## Think of it like

It is like putting stickers on a page. The stickers say this is a title and this is a list.

## Definition

A markup language adds labels to plain text to say what each part is. The labels are often called tags. A tag might say this is a heading, a link or a list. A browser or app reads the tags and shows the text the right way. A markup language describes things, but it cannot do sums or make choices like a programming language.

## Example

HTML is the markup language of the web. Markdown and XML are two more.

## Example code

```html
<h1>My Trip</h1>
<p>We went to <strong>Tokyo</strong> in May.</p>
```

The tags say which part is the heading and which word is strong.

## Why it matters

Web pages, many documents and lots of data files are all written in one. Learn the idea once and you can read them all.

## Common mistake

Calling HTML a programming language. It has no loops or choices, so it only describes; JavaScript does the work.

## Three principles

- **Labels on text.** Tags say what each part is.
- **Read by an app.** The app decides how it looks.
- **Describes only.** No sums, no choices.

## Related terms

- [HyperText Markup Language (HTML)](https://learn.benibix.com/term/development/html)
- [Extensible Markup Language (XML)](https://learn.benibix.com/term/development/xml)
- [Markdown](https://learn.benibix.com/term/development/markdown)
- [Programming Language](https://learn.benibix.com/term/development/programming-language)
- [Domain-Specific Language (DSL)](https://learn.benibix.com/term/development/domain-specific-language)

## Told apart from

- [Markup Language vs Programming Language](https://learn.benibix.com/compare/markup-language-vs-programming-language): People think HTML is a programming language, and it is not. A markup language only labels parts of a text, like this is a heading or this is a link. It cannot add numbers, repeat a step or make a choice. A programming language can do all three. On a web page, HTML says what is there and JavaScript makes it do things.

## Taught in

- [Markup Languages and DSLs](https://learn.benibix.com/learn/development-languages/markup-languages-and-dsls): Programming Languages, 4/12

![A wide box labelled programming languages, split into two sides. On the left, general-purpose languages such as Python and Java, which can build almost anything. On the right, domain-specific languages, lit up, each made for one job: SQL for data, CSS for looks, regular expressions for text. Outside the big box sits a markup language, HTML, which describes a page but cannot calculate. Below, a strip of coloured blocks snapped together shows block-based programming.](https://learn.benibix.com/diagrams/dev4-language-kinds.svg)

---

Source: https://learn.benibix.com/term/development/markup-language
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
