Jump to content

DOCTYPE html PUBLIC


hackerkts

Recommended Posts

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

 

Just a question here, is the above code needed to put on top of each page?

I used Dreamweaver for my page, and it auto includes that line, that code also made javascript toggle not working -.-

 

Thanks in advance.

Link to comment
Share on other sites

  • 2 weeks later...

the doctype can help you greatlt...

 

If you use a strict doctype html4.01 strict, xhtml 1.0 strict or xhtml 1,1 then you will get much better cross browser results.  browsers use teh dtd to chose which rendering model to use. A strict dtd makes IE6 use the standards mode instead of quirks mode....

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.