More in this section

Forums / Developing with Sitefinity / adding DOCTYPE to page

adding DOCTYPE to page

3 posts, 0 answered
  1. mark
    mark avatar
    2 posts
    Registered:
    30 Sep 2007
    07 Nov 2007
    Link to this post
    I'm using some javascript within a page (sarissa)
    to make this work i need to have this 

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">


    How do i add the strict doctype etc to the page ?

  2. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    07 Nov 2007
    Link to this post

    Hey Mark,

    Is this something that could be changed in your master templates?  (App_Master folder)

    Take care,

    Gabe
    ==============

     

  3. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    08 Nov 2007
    Link to this post
    Hello Mark,

    The !DOCTYPE declaration should be at the beginning of your master pages, before the html tag.The element does not require a closing tag. It specifies the Document Type Definition (DTD) to which the document conforms and as you have already mentioned is used to to switch into strict standards-compliant mode.

    You could also look at the following thread for more information.

    Hope this helps.

    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
3 posts, 0 answered