Possible Duplicate:
HTML: What is the functionality of !DOCTYPE
hi
i am .asp web developer as a beginner,
i find many article for , but i not get a complete idea..
1.what the use of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ?
2.there is any need for use this in my classic asp page?
The doctype tells the browser what version of html to use to render the page. If you use xhtml strict for example, not closing your meta tags with a /> will result in the page not validating.
So basically, it lets the browser know what set of rules to use when rendering the page.
Edit: That doctype will render the page in xhtml transitional. And I am a PHP developer but I would assume you need to include the doctype in your ASP.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With