Hello friends, Will anybody make me clear what exactly the doctype is and why doctype is used in websites. and please make me clear aso about all types of doctypes and which is used most nowdays and whay. I would appericiate all the responses. Thanks
The doctype is the Document Type Definition. It's the set of rules defining what each element of your web page means and how it's handled. All new pages should be using the HTML4.01 Strict doctype. There is no need for 'transitional' in new sites. Without a doctype, the browser will render your page in 'quirks mode'. This mode uses all the wrong things and you never want to be there.