Forum Moderators: open

Message Too Old, No Replies

Best and recommended doctype declaration for html code

         

born2run

4:04 pm on Jul 29, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi what's the ideal and recommended doctype declaration for a website with mobile and desktop visitors?

whitespace

4:54 pm on Jul 29, 2016 (gmt 0)

10+ Year Member Top Contributors Of The Month



In 2016 it's easy, HTML5 DOCTYPE for everything...


<!DOCTYPE html>


It's backward compatible, meaning that it triggers "standards mode" (or "almost") in old browsers, such as IE6.

(BTW this is an HTML question, not Apache.)