Jade-Lang.com
An independent reference for the historical Jade template syntax.
Doctype
Use doctype to specify the document type of the generated markup.
For modern HTML, the usual choice is:
doctype html
This produces:
<!DOCTYPE html>
The selected doctype can also influence how Jade renders elements such as self-closing tags and boolean attributes.
Custom doctypes
Custom declarations can also be written when a specific document format requires one.
doctype html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN"
For most modern websites, doctype html is the simplest and preferred choice.
Jade Language © 2026 | About Us | Privacy Policy