Jens Schauder
Jens Schauder

Reputation: 81907

What html Version to use?

I'm starting a little web application project. It is intended for tech savvy users, so I'll happily require more or less the latest Browser versions.

So what version of HTML should I use, i.e. what should go in the document header?

Upvotes: 1

Views: 2685

Answers (4)

snsk
snsk

Reputation: 13

<!DOCTYPE html> suits your needs. Latest Browser understand this. Other Browser ignore this and choose better version.

Upvotes: 1

talha2k
talha2k

Reputation: 1

HTML5 <!DOCTYPE html>

HTML 5 is the newest specification for HTML, and many browsers are supporting it. One nice thing about HTML 5 is that it attempts to stay backwards compatible. So if you don't want to learn it just yet, you don't need to.

For more details, demos, examples and documentation, go through:

HTML5 - The Newest Version of HTML

http://www.w3schools.com/html5/default.asp

HTML 5 Demos and Examples

http://coding.smashingmagazine.com/2011/07/28/introducing-html5-and-css3-to-your-clients/

Compatibility tables for support of HTML5

Hope this helps.

Upvotes: 2

Ayman Safadi
Ayman Safadi

Reputation: 11552

Definitely go the HTML5 route. If we as developers keep worrying about browsers catching up, we will never move forward. While true, HTML5 is not fully supported by older browsers, there are tons of tools that will bring these browsers up-to-speed:

Lastly, Dear Clients, The Web Has Changed. It’s Time To Use CSS3 and HTML5 Now.

Upvotes: 1

Lion King
Lion King

Reputation: 33813

latest version of HTML is 5 , works with latest version of browsers , But, sometimes the users using older versions of browsers, So you will lose these visitors . I advise you to use XHTML in order not to lose some visitors

Use DOCTYPE for (HTML5) :

<!DOCTYPE html>

Use DOCTYPE for (XHTML) :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Upvotes: 1

Related Questions