Important changes to Tiny Cloud pricing > Find out more
Return to Website


This option enables you to specify the doctype that is used while editing content within TinyMCE.

The default value is set to:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

This option does not affect the format of tags: "
" versus "
". See element_format option instead.

Note however that there is no need to change the doctype to XHTML because TinyMCE will produce XHTML in any case. Read the comments here.

On the other hand, if you set it to XHTML your IE7 users will have problem selecting the edit area.

If unsure, don't specify the doctype.

Example of usage of the doctype option:

    doctype : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.