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 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
doctype 1.1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
doctype basic
| ... |