Declaring the document's Doctype

The Doctype of the document is declared by using the doctype keyword followed by an optional Doctype value. If no value is specified, it defaults to html. Alternatively, you can use !!! instead of doctype.

The following table lists the predefined values of Doctype:

Jade

HTML

doctype

<!DOCTYPE html>

doctype 5

<!DOCTYPE html>

doctype default

<!DOCTYPE html>

doctype transitional

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

doctype strict

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

doctype frameset

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...

Get Express Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.