string :doctype ( string $FORMAT )
string :doctype ( int $FORMAT )
Returns a string containing the W3C doctype appropriate for given file format. Possible input values are:
html5
- returns the HTML5 doctypehtml4-strict
- returns the HTML 4.01 Strict doctypehtml4-loose
- returns the HTML 4.01 Transitional doctypehtml4-transitional
- returns the HTML 4.01 Transitional doctypehtml4-frameset
- returns the HTML 4.01 Frameset doctypexhtml1-strict
- returns the XHTML 1.0 Strict doctypexhtml1-transitional
- returns the XHTML 1.0 Transitional doctypexhtml1-frameset
- returns the XHTML 1.0 Frameset doctypexhtml1-1
- returns the XHTML 1.1 doctype5
- HTML5 doctype4
- HTML 4.01 Transitional doctype1
- XHTML 1.1 doctypeWhen given an unrecognized value, or invoked with no arguments altogether, return value defaults to the HTML5 doctype.
# Can be used at the beginning of some CGI script :writeln :doctype s'html4-loose' :writeln s'<HTML lang="en">
wikistrona zmodyfikowana 2014/0601/2317