hackerkts Posted June 24, 2007 Share Posted June 24, 2007 <!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 More sharing options...
hackerkts Posted June 24, 2007 Author Share Posted June 24, 2007 Ops sorry, can't edit my previous post. Just a update here, if I didn't put that line on, some of my page front will ugly, eg: become bigger, not in order. Nvm.. I think I'll just give up on toggle. Link to comment https://forums.phpfreaks.com/topic/56926-doctype-html-public/#findComment-281210 Share on other sites More sharing options...
Cathering_ Posted July 6, 2007 Share Posted July 6, 2007 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Its not nessary its just for W3C validateion and the xmlns="http://www.w3.org/1999/xhtml" is not nessary its one of them "add them if you likes" Link to comment https://forums.phpfreaks.com/topic/56926-doctype-html-public/#findComment-291596 Share on other sites More sharing options...
ToonMariner Posted July 6, 2007 Share Posted July 6, 2007 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 More sharing options...
hackerkts Posted July 7, 2007 Author Share Posted July 7, 2007 Ok guys, thanks for replies, think I will stick <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> on all my pages. Link to comment https://forums.phpfreaks.com/topic/56926-doctype-html-public/#findComment-291712 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.