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
https://forums.phpfreaks.com/topic/56926-doctype-html-public/
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
https://forums.phpfreaks.com/topic/56926-doctype-html-public/#findComment-291599
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.