# Markup Languages and DSLs

> Languages that are not for everything. Markup that only describes a page, small languages built for one job, and coding with blocks in Scratch.

**Course:** [Programming Languages](https://learn.benibix.com/learn/development-languages)  
**Time:** 11 min

**After this lesson you can:**

- Tell markup from code that can work things out
- Name three domain-specific languages
- Say what block-based tools like Scratch are for

## Which languages do one job, or only describe

Not every language is built to do anything. A markup language only labels the parts of a text, such as this is a heading or this is a link. HTML, which every web page is written in, is one. Markdown, used for notes and README files, is another. They describe, but they never work anything out.

That is the test. A programming language can add, decide and repeat. HTML cannot: it has no if and no loop. So it is a fair point when people say HTML is not a programming language. It is still a real skill, and every web developer uses it daily.

A domain-specific language, or DSL, is a small language made for one job. SQL asks a database for data. CSS says how a web page should look. A regular expression describes a pattern of text to find. Each is far shorter than a general-purpose language for its own job, and useless outside it.

Python, Java and C# are the opposite. They can build almost anything. Most coders use one or two of those, plus a few DSLs. A web app might be written in Python, with SQL for its data. CSS sets its looks and HTML holds its pages.

Block-based programming takes away the typing. You snap blocks together on a screen, and each block is one step, such as repeat 4 times or move 10 steps. The shapes only fit where the rules allow. So a syntax error cannot happen.

Scratch is the best-known block tool. It is free, it runs in a web browser, and it was made at MIT for children to build games and stories. The ideas are the real ones: variables, loops, ifs and events. Only the typing is missing.

The common mistake is thinking blocks are not real coding. A child who builds a game in Scratch has learned loops and conditions. Moving to a typed language later is learning new spelling, not new ideas.

```html
<h1>My Trip</h1>
<p>We spent <strong>3 days</strong> in Rome.</p>
```
HTML labels each part: a heading, a paragraph, a bold phrase. It describes the page and works nothing out.

![Three groups. Programming languages that compute, split into general-purpose, such as Python, Java and C#, and domain-specific, such as SQL for data, CSS for looks and regex for text patterns. Markup languages that only describe, such as HTML, Markdown and XML. Along the bottom, block-based programming: blocks reading when clicked, repeat 4 times, move 10 steps.](https://learn.benibix.com/diagrams/dev4-language-kinds.svg)

### Example: Jack's daughter makes a game

Jack's 9 year old daughter builds a catch the apple game in Scratch. It uses a score variable, a forever loop and an if for each catch.

At 12 she moves to Python. The first week is spent on typing and colons. The loop and the if she already knows.

**Words in this lesson:** [Markup Language](https://learn.benibix.com/term/development/markup-language), [Domain-Specific Language (DSL)](https://learn.benibix.com/term/development/domain-specific-language), [Block-Based Programming](https://learn.benibix.com/term/development/block-based-programming), [Scratch](https://learn.benibix.com/term/development/scratch)

**Question:** Why is HTML called a markup language and not a programming language?

**Answer:** It only labels parts of a page and cannot work anything out. HTML marks what each part of a page is. It has no if, no loop and no maths, so it describes rather than computes.

---

Source: https://learn.benibix.com/learn/development-languages/markup-languages-and-dsls
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-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
