Zebra_Form::doctype PHP Method

doctype() public method

Use this method if you want the generated HTML markup to validate as XHTML 1.0 Strict.
public doctype ( string $doctype = 'html' ) : void
$doctype string (Optional) The DOCTYPE of the generated HTML markup. Possible (case-insensitive) values are HTML or XHTML Default is HTML. @return void
return void
    function doctype($doctype = 'html')
    {
        // set the doctype
        $this->form_properties['doctype'] = strtolower($doctype) == 'xhtml' ? 'xhtml' : 'html';
    }