Welcome to WebmasterWorld Guest from 3.226.251.205

Forum Moderators: open

Message Too Old, No Replies

Best and recommended doctype declaration for html code

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

Senior Member

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

joined:Dec 19, 2004
posts: 985
votes: 14


Hi what's the ideal and recommended doctype declaration for a website with mobile and desktop visitors?
4:54 pm on July 29, 2016 (gmt 0)

Full Member

Top Contributors Of The Month

joined:Apr 11, 2015
posts: 328
votes: 24


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.)