Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what the use of <!DOCTYPE >? [duplicate]

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?

like image 328
user475464 Avatar asked Dec 06 '25 07:12

user475464


1 Answers

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.

like image 124
Olical Avatar answered Dec 07 '25 21:12

Olical



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!