# Document type declaration

*noun*

say it: **“DOK-type”** **/ˈdɒktaɪp/** or **“DOK-yuh-ment TYPE dek-luh-RAY-shun”** **/ˈdɒkjəmənt taɪp ˌdɛkləˈreɪʃən/**

The first line of an HTML file, written doctype html, that tells the browser to read the page by today's HTML rules.

## What is **Document type declaration**?

**Document type declaration** — The declaration at the start of a document that tells browsers to use modern HTML parsing.

```html
<!doctype html>
```

## In a sentence

- “I put the **doctype** at the very top of index.html, before the html tag.”

Level: Novice · [More HTML terms at this level](https://www.ask-codey.com/glossary?category=html&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/document-type-declaration
