There is many types of doctype according to HTML version. Doctype is an instruction to the web browser, which tell that which version of HTML the page written in. It is first thing in your HTML page. We should always use doctype declaration in HTML documents, so that Browser knows what type of document to expect.
For Example:-
HTML 4.01 Strict
<!doctype html="" public="" dtd=""></!doctype>
XHTML 1.0 Strict
<!doctype html="" public="" dtd=""><!doctype html="" public="" dtd="" xhtml="" 1.0=""></!doctype></!doctype>
XHTML 1.0 Transitional
<!doctype html="" public="" dtd=""><!doctype html="" public="" dtd="" xhtml="" 1.0=""><!doctype html="" public="" dtd="" xhtml="" 1.0=""></!doctype></!doctype></!doctype>
XHTML 1.1
<!doctype html="" public="" dtd=""><!doctype html="" public="" dtd="" xhtml="" 1.0=""><!doctype html="" public="" dtd="" xhtml="" 1.0=""><!doctype html="" public="" dtd="" xhtml=""></!doctype></!doctype></!doctype></!doctype>
HTML 5
<!doctype html="" public="" dtd=""><!doctype html="" public="" dtd="" xhtml="" 1.0=""><!doctype html="" public="" dtd="" xhtml="" 1.0=""><!doctype html="" public="" dtd="" xhtml=""><!doctype html=""></!doctype></!doctype></!doctype></!doctype></!doctype>
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Deepak Insa
Deepak is an experienced UI developer with experience and capabilities to build compelling UIs for Web and Mobile Applications.