docType() public method

Possible doctypes: - html4-strict: HTML4 Strict. - html4-trans: HTML4 Transitional. - html4-frame: HTML4 Frameset. - html5: HTML5. Default value. - xhtml-strict: XHTML1 Strict. - xhtml-trans: XHTML1 Transitional. - xhtml-frame: XHTML1 Frameset. - xhtml11: XHTML1.1.
public docType ( string $type = 'html5' ) : string | null
$type string Doctype to use.
return string | null Doctype string
Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function docType($type = 'xhtml-strict')
 {
     return parent::docType($type);
 }