Module function reference

doctype

A reference entry for doctype

Module function · HTML

doctype doctype ([string type]) ⇒ string

Creates an HTML doctype declaration.

Example

YASS
$html = HTML::doctype()

Input: type omitted

Output: <!DOCTYPE html>