How to change template Doctype from xhtml to html5

4 years 7 months ago #84500 by anaxent
I noticed that the templates get the doctype html and head tags injected into the themes as
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" xml:lang="en" lang="en">

How would I go about over riding that to use html5 doctype
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->

Please Log in to join the conversation.

4 years 7 months ago #84501 by DenisChenu

For the no-js / ie6 .... class, you can put it in body and not in html tag. It's what oi done in citronade template (adapat the no-js/js script for body).

To have HTML 5 tag : i think you can use $embedded function ( look in config-default.php).

I think there are a feature request for HTML 5.


Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.