HTML Defination DTD Problem

Last post 05-11-2008 6:50 AM by Bonekrusher. 3 replies.

Sort Posts:

  • HTML Defination DTD Problem

    05-07-2008, 2:25 AM
    • Naveed88
    • Joined on 04-02-2008, 7:56 AM
    • Mumbai
    • Posts 22

    Smile Hi Everybody !!

      

    I m using <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >

    In my web Page, this works fine for Modal Popup extender but not with MenuExtender styles

     

    If I use <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

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

    Then Menu works fine but Modal popup gets disturbed,

     

    Actually I suppose to use XHTML 1.0

     

    So is there any one who help me, which one I use so that both (Modal popup & menu) works fine ?

    Also what is basic different between both and which is better ?

    Can I use any third one?

     

    Thanks in Advance !!

     

    Regards,
    Vihang.


  • Re: HTML Defination DTD Problem

    05-07-2008, 7:37 AM
    Answer

     Why use it at all? Delete it.

    If I was helpful, please mark "answered" so I can get credit. Thanks!
  • Re: HTML Defination DTD Problem

    05-10-2008, 5:51 AM
    • Naveed88
    • Joined on 04-02-2008, 7:56 AM
    • Mumbai
    • Posts 22

     thank you for the reply ,it seems pages looks fine without DTD but needs more testing ..

    so can u tell whats the actual use of it using it in master pages or say in any page?

     

    Regards,
    Vihang.


  • Re: HTML Defination DTD Problem

    05-11-2008, 6:50 AM

     Hi,

    Its used to declare which version of HTML you are using. see http://htmlhelp.com/tools/validator/doctype.html

    However its not needed.

    This will run in a browser:

      

    <html>
       <head>
          <title>Enter the title of your HTML document here</title>
       </head>
       <body>
          <p>Enter the body text of your HTML document here</p>
       </body>
    </html>
     
    If I was helpful, please mark "answered" so I can get credit. Thanks!
Page 1 of 1 (4 items)