What are the benefits and negative to passing a document type validation such as Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> validator.w3.org
The benefit of having a doctype is that it let's your browser: 1.) Be validated 2.) Keep IE out from quirksmode 3.) Gives your design a fair ground...(at least) Negative effects....for me is none..except that it lets you work twice as much as you're working just to fulfill the same rendering on different browsers I guess DTD has no ill effects...Why would the standard require a DTD in every page when it has to bring ill effects :roll:
I thought that these lines are comments.... :p Didn't knew that these are important....but still i feel that these are just comments and have no impact...
Not a comment...but indeed a useful part of the page....a semantical way of proper coding..It's importance is equal as to having a body tag in your HTML There are a number of articles that tackle regarding DTD..and the validation: http://validator.w3.org/docs/why.html http://www.w3.org/QA/2002/04/valid-dtd-list.html http://diveintomark.org/archives/2003/0 ... t_help_you