Gets the Html Doctype.

This viper method also supports the extension viper syntax.

Syntax

Smartsite SXML CopyCode image Copy Code
enum this.getdoctype()

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
enum page.<id>.getdoctype()

Parameters

This Viper method does not expose any parameters.

Return Value

Data Type Description
Enum The Html document type
Enum values:
  • None
    Ignore doctype
  • Html401Strict
    HTML 4.01 strict mode
  • Html401Transitional
    HTML 4.01 transitional mode
  • Html401Frameset
    HTML 4.01 frameset document
  • XHtml10Strict
    XHTML 1.0 strict
  • XHtml10Transitional
    XHTML 1.0 transitional
  • XHtml10Frameset
    XHTML 1.0 frameset document
  • XHtml11
    XHTML 1.1
  • XHtmlBasic10
    XHTML Basic 1.0
  • XhtmlRDFa1
    XHTML+RDFa 1
  • Html5
    Html 5
  • XHtml5
    XHtml 5
  • Custom
    Custom DocType

Used in

Macro Description
HtmlPage Html container macro that helps you setting the doctype and the encoding of the document.
XHtmlPage Xhtml container macro that helps you setting the doctype, the xml declaration and the encoding of the document.

Expand image Example

SXML