# Does the page tell browsers to use modern HTML?

Anonymous Analysts guide. Reviewed 2026-11-23.

![Link text, Read more, Destination unclear. Link text, Return policy, Destination named.](/assets/diagrams/navigation-example.webp)

## What the result means

Browsers look for a short declaration at the top of an HTML page. Without it, a browser may lay out the page using older rules.

## What to do

Start a full HTML document with <!doctype html>. Confirm that the server sends HTML rather than wrapping a different document format.

## Practical example

<!doctype html> belongs before the html element in a normal HTML page.

## Implementation example

```html
<!doctype html>
<html lang="en">
  <head><meta charset="utf-8"><title>Example service</title></head>
  <body><main><h1>Example service</h1></main></body>
</html>
```

## Adapting the example

Keep one document root. Validate the complete delivered document rather than inserting a second doctype into a component.

## How to verify the result

Inspect the actual document response and test the resulting page layout in supported browsers.

## What this check cannot prove

An HTML doctype does not validate the rest of the document or prove correct layout, accessibility or task completion.

## Where this advice comes from

The linked primary guidance informs these steps. Anonymous Analysts defines the test interpretation and its acceptance criteria.

## Sources and standards

- [html.spec.whatwg.org](https://html.spec.whatwg.org/multipage/syntax.html#the-doctype)

## Related checks

- [What is the main heading?](/guides/checks/primary-heading)
- [Do the controls have readable names?](/guides/checks/control-names)
- [Which URL is the preferred version?](/guides/checks/canonical)

[All check guides](/guides/) · [Run the free checker](/tools/agent-readiness#checker)
