Learn More





New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Set the doctype of your skin (to XHTML)

Return to previous page

  • 4/7/2015



Set the doctype of your skin (to XHTML)

Last updated 8 years ago



(Enter the content of this article below)



How to set the doctype for your DotNetNuke skin?

There are 2 ways to force DotNetNuke to use an XHTML doctype:

A. Using an XML file

You can set the doctype for a specific skin by including a doctype.xml file.The name of this file should be: "skinname".doctype.xml.So for every HTML / ASCX file you will have to add an XML file.The content of this file should be:


The part should be replaced with the HTML doctype you want set.

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

XHTML 1.0 Strict:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">

B. From the Host settings

You can set the Fallback doctype in host settings.Choose Host > Host Settings and select the doctype under “Fallback Skin doctype”.This will force all skins on all portals without a doctype.xml file to use the doctype you set.Please beware that this could potentially lead to unwanted effects if there are non XHTML skins in other portals then the one you are targeting.
No sections defined
Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out