The importance of document type validation

Discussion in 'Web Development and Programming' started by Adam, Apr 23, 2008.

  1. Adam

    Adam Regular Member

    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
     
  2. rangana

    rangana Regular Member

    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 :D

    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:
     
  3. adithya

    adithya Regular Member

    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...
     
  4. rangana

    rangana Regular Member

    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 :D

    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
     

Share This Page