diff options
author | Andrey Andreev <narf@devilix.net> | 2016-01-20 10:50:51 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-01-20 10:50:51 +0100 |
commit | 1d1568036d9bfb335817e4f0b9ad9db403406776 (patch) | |
tree | 429230516bd49c4a8c155bea48212d7c54c5c3eb /user_guide_src/source/helpers | |
parent | e5563f8a1d939666b70b2deac10b0e368f6de2e5 (diff) | |
parent | b6774cbeb11ac7bc5bd694c1da87ed77e9d4f9fb (diff) |
Merge pull request #4389 from sebastienadam/default_html5
[ci skip] Change default doctype to HTML 5
Diffstat (limited to 'user_guide_src/source/helpers')
-rw-r--r-- | user_guide_src/source/helpers/html_helper.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/user_guide_src/source/helpers/html_helper.rst b/user_guide_src/source/helpers/html_helper.rst index a19924dde..b4e56fdca 100644 --- a/user_guide_src/source/helpers/html_helper.rst +++ b/user_guide_src/source/helpers/html_helper.rst @@ -330,18 +330,18 @@ The following functions are available: // <meta charset="UTF-8" /> -.. php:function:: doctype([$type = 'xhtml1-strict']) +.. php:function:: doctype([$type = 'html5']) :param string $type: Doctype name :returns: HTML DocType tag :rtype: string - Helps you generate document type declarations, or DTD's. XHTML 1.0 + Helps you generate document type declarations, or DTD's. HTML 5 is used by default, but many doctypes are available. Example:: - echo doctype(); // <!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + echo doctype(); // <!DOCTYPE html> echo doctype('html4-trans'); // <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |