What is W3C latest officially recommended HTML and CSS version, for web development?

6.2k views Asked by At

What are the latest HTML and CSS specifications officially recommended by the W3C for web development?

Is it XHTML 1.1 and CSS 3?

6

There are 6 answers

8
Quentin On

The latest HTML and CSS versions to reach Recommendation status are HTML 4.01 and CSS 2.0.

XHTML 1.1 has also reached Recommendation status, but the hoops you have to jump though to make it HTML compatible (required for IE support) combined with the benefits offered over HTML 4.01 mean that it should be avoided by most authors.

CSS 2.1 has reached Candidate Recommendation status, but should be used instead of CSS 2.0 because it better reflects what browsers actually do. CSS 2.0 reached recommendation status before the rules were changed to require 2 independent, interoperable implementations of a specification before it could advance to Recommendation status.

CSS 3 is a group of specifications, not a specification in its own right. A number of them have reached Candidate Recommendation status, but support is nowhere near as wide as for CSS 2.1.

1
AudioBubble On

HTML 4.01, XHTML 1.1, and CSS level 2 are all W3C Recommendations, as are earlier versions of each respective standard.

CSS level 2, revision 1 (i.e. CSS 2.1) is still a candidate recommendation, and CSS level 3 is still a working draft. The W3C provides a handy chart of its progress in CSS.

As you might be able to tell from the dates on the recommendations, the classification system the W3C uses is next to meaningless for real-world applications. You're better off referencing something like QuirksMode to make an informed choice about what technologies you want to use.

4
Arve Systad On
  • XHTML 1.1 has been a recommendation since May 31st 2001.
  • HTML 4.01 has been a recommendation since December 24th 1999
  • CSS 2.1 is actually not a proper recommendation, but a candidate recommendation. In practice most of the 2.1-spec is usable today. The 2.0 spec, however, is a proper recommendation.

As far as I know, W3C does not for instance recommend XHTML before HTML. Both of them are perfectly valid to use.

While we are really looking forward to use HTML5, the funny thing is it will probably not be an official recommendation before 2022. Again, in practice - most of it will probably be fully usable within not too long. Especially when IE9 is done (which it should be soon). The other browsers are implementing and updating the new specification every day.

0
roryf On

I don't think there is such a thing as the W3C 'officially recommended' versions for day-to-day usage per se, the W3C is only there to oversee the standardization of technologies (as someone mentioned, CSS 2.1 is still candidate recommendation, but we all use it). The naming of Recommendation and Candidate Recommendation are essentially useless to anyone outside the W3C, unless you're a browser manufacturer or maybe a tools developer.

The latest web standards coming out of the W3C currently, are HTML5 and CSS3. Both are very much in use today, despite what you might hear about 2022. These standards are modular, so browsers can focus on implementing a single module rather than the whole standard (which rarely happens in its entirety anyway). HTML5 is also designed to be completely backwards compatible, and it based on research about how people are actually using HTML today, not how browser manufacturers might want you to be using it.

This means you can use much of the standards now. Some common usages include:

the HTML5 doctype:

<!DOCTYPE html>

omitting type from link and script when you are using the defaults:

<link href="mystyles.css" />
<script src="myscript.css"></script>

In CSS3 you can use properties such as border-radius or box-shadow, browsers which implement these will get the effects and older ones will just see square corners and not know any different.

This means HTML5 and CSS3 are not all-or-nothing solutions, feel free to pick the new bits that work for you and use what you're used to for the rest, your markup will still be perfectly valid and work fine.

0
Guffa On

W3C doesn't do any recommendations for what to use for web development. They specify standards and recommend browser authors to follow them.

Which standards you choose to use for web development depends on your audience and what their browsers can be expected to support, and also how important it is that all visitors can use all functions on the site.

So, there is no single set of standards that can be recommended for all kinds of web development.

0
udo On

W3C Recommendation are

  • CSS1
  • HTML 4.01
  • XHTML1.1

Still in Working Draft stage are:

  • CSS3
  • HTML5

Source: http://www.w3.org/TR/