Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML version choice [closed]

Tags:

When developing a new web based application which version of html should you aim for?

EDIT:

cool I was just attempting to get a feel from others I tend to use XHTML 1.0 Strict in my own work and Transitional when others are involved in the content creation.

I marked the first XHTML 1.0 Transitional post as the 'correct answer' but believe strongly that all the answers given at that point where equally valid.

like image 537
sparkes Avatar asked Aug 06 '08 16:08

sparkes


People also ask

How many versions of HTML are available?

Conclusion. There are lots of version of HTML which is being developed. From an initial version of 1.0 to the latest version of 5.2, HTML has developed a lot. W3C has also maintained standards so that all browsers could have a common standard to follow.

Which HTML version is best?

HTML 5 has become a standard language of the internet and is the most widely accepted by modern browsers. You should only be using older versions of HTML (e.g., 4.0, 3.2, etc.) if you have a specialized reason to do so. If you don't have a specific situation that calls for something else, then you should use HTML 5.


1 Answers

HTML 4.01. There is absolutely no reason to use XHTML for anything but experimental or academic problems that you only want to run on the 'obscure' web browsers.

XHTML Transitional is completely pointless even to those browsers, so I'm not sure why anyone would aim for that. It's actually pretty alarming that a number of people would recommend that.

I'd say aiming for HTML 4.01 is the most predictable, but Teifion is right really, "anything that renders your page will do".

in response to Michael Stum:

XHTML is XML based, so it allows easier parsing and you can also use the XML Components of most IDEs to programatically query and insert stuff.

This is certainly not true. A lot of XHTML on the web (if not most) does not conform to XML validity (and it needn't - it's not being sent as XML). Trying to treat this like XML when dealing with it is just going to earn you a lot of headaches. This page on Stack Overflow, for instance, will generate errors with many unforgiving XML tools for having invalid mark-up.

like image 114
Lauren Avatar answered Oct 05 '22 22:10

Lauren