Skip to content
ToolsLeb ToolsLeb

Doctype Checker

Detect a webpage's <!DOCTYPE> declaration and identify whether it's HTML5, XHTML, HTML 4.01, or missing.

Enter a page URL

Share on Social Media:

Enter a URL to fetch the live page and detect its <!DOCTYPE> declaration. The tool reports the exact doctype string found and classifies it as HTML5, XHTML, HTML 4.01, legacy HTML, or missing/unknown.

Frequently Asked Questions

The doctype tells browsers which rendering mode to use. A missing or incorrect doctype can push a browser into "quirks mode," causing inconsistent layout and CSS behavior across browsers.

Modern pages should use the simple HTML5 doctype: . It is supported by all current browsers and triggers standards-mode rendering.

Not directly as a ranking factor, but a resulting quirks-mode rendering can cause layout bugs that hurt user experience signals search engines do care about, like mobile usability.