Wondering what is HTML and why every web page depends on it? It is the markup language that wraps text in elements, so browsers know what is a heading, a link or a list.
| Item | Value |
|---|---|
| Full name | HyperText Markup Language |
| What it does | Defines the structure of text content |
| Heading levels available | 6 heading levels |
| Early revisions hosted at CERN, then the IETF | 1990-1995 |
| W3C and WHATWG goals diverged | 2011 |
The figures come from MDN’s HTML basics lesson and the WHATWG HTML Standard. Standards and documentation change, so check those pages before you rely on the details.
What HTML actually does
HTML is a markup language made of elements that wrap, or enclose, text content to define its structure and make it behave in a certain way, according to the MDN lesson. Without it, a browser would show your words as one unbroken line.
The name explains the idea. In MDN’s words, “Hypertext” refers to text containing links that connect web pages to one another, either within a single website or between websites, as the MDN HTML reference puts it.
MDN gives a simple example: the text “Instructions for life: Eat Sleep Repeat” shows on one line until you wrap it in a paragraph element and three list item elements. Then the browser displays a sentence followed by three bullet points.
How an HTML document is built
Every page starts from the same skeleton. The MDN walkthrough builds it from a handful of parts, and you will see them in almost every page you open.
- Doctype: a short first line that tells the browser to treat the file as modern HTML. MDN notes that around 1991/92 doctypes were meant to link to a set of rules the page had to follow.
- The html element: it wraps all the content on the entire page and is sometimes known as the root element. It also carries the lang attribute, which sets the primary language of the document.
- The head element: a container for everything you want to include on the page that isn’t the content shown to viewers, such as the title, keywords and character set.
- The body element: it contains all the content you want to show to web users, whether that is text, images, videos, games or audio tracks.
Inside the head, a charset declaration sets the document’s character set to UTF-8, which MDN says includes most characters from the vast majority of written languages. A title element sets the title of your page.

Elements, tags and attributes
Most HTML elements consist of an opening tag, then the element’s content, then a closing tag. An element is the whole package; the tags are only the markers at each end.
Some elements also have attributes, which contain extra settings or information about the element. In MDN’s sample page, charset, name and src are all attributes.
Images show how attributes work in practice. The image element embeds a picture at the spot where it appears, and its alt attribute holds alternative text. MDN points out that users with significant visual impairments often use tools called screen readers to read out that alt text.
Text structure comes from a small set of everyday elements:
- Paragraphs for ordinary blocks of text.
- Headings, where HTML has 6 heading levels, although MDN says you will commonly use only a few of them.
- Lists, either bulleted or numbered.
- Links, the feature that gives hypertext its name.
- Images, with alternative text.
HTML, CSS and JavaScript: who does what
HTML handles structure and content, but it is not the only technology on a page. MDN states that other technologies are generally used to describe a web page’s appearance or presentation (CSS) and its functionality or behavior (JavaScript), as the MDN HTML reference explains.
A useful picture: HTML is the skeleton, CSS is the clothing, and JavaScript is the movement. If you want the styling half of the story, read what is css next.
These layers also map onto the split between browser work and server work, which is explained infront end vs back end development. HTML belongs firmly on the front end, because the browser reads it directly.
Who maintains the HTML standard?
The WHATWG’s HTML Standard calls HTML the World Wide Web’s core markup language. It adds that HTML was originally designed primarily as a language for semantically describing scientific documents.
The same source explains that for its first five years (1990-1995), HTML went through a number of revisions and extensions, hosted first at CERN and then at the IETF. In 2011 the groups concluded that they had different goals: the W3C wanted to publish a “finished” version, while the WHATWG wanted to keep maintaining a Living Standard.
In practice, that means HTML is not a numbered product you install. The specification is continuously maintained and adds new features as needed, so the language you learn today keeps evolving.
Where to go from here
You can practise HTML with nothing but a text editor and a browser. Save a file with the right structure, open it, and change one element at a time to see what happens.
- Write the skeleton: doctype, html, head and body.
- Add a title and one main heading.
- Put in a paragraph, a list and one image with alt text.
- Add a link to another page.
For the wider map of skills around this one, browse our guide to web development basics.
Frequently asked questions
Is HTML a programming language?
Show answer
No. HTML describes content rather than running logic, which is why MDN calls it a markup language and assigns behavior to JavaScript.
Do I need to install anything to write HTML?
Show answer
No special software is required. A plain text editor creates the file and any web browser displays it.
Why does a page need a title element?
Show answer
It gives the page its title, and MDN adds that the title is also used to describe the page when someone saves it as a favorite.
Does HTML control how a page looks?
Show answer
Only its structure. Colors, spacing and layout are the job of CSS, while HTML tells the browser what each piece of content is.



