3

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

Is it XHTML 1.1 and CSS 3?

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852

6 Answers6

6

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.

  • Note also that CSS 3 isn’t one spec — it’s comprised of modules, each of which is at a different stage. As per http://www.w3.org/Style/CSS/current-work, at time of writing, four CSS3 modules (Namespaces, Backgrounds and Borders, Multi-column layout, and Media Queries) are at Candidate Recommendation stage, whilst Selectors is a Proposed Recommendation, and Color is a Recommendation. – Paul D. Waite Jul 11 '11 at 14:12
4

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.

Guffa
  • 687,336
  • 108
  • 737
  • 1,005
1

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.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
  • 1
    CSS 2.1 is only [candidate recommendation](http://www.w3.org/TR/CSS2/), not recommendation. –  Aug 16 '10 at 19:31
  • I heard XHTML 1.0 Strict is the most recommended version to use by W3C, is it true? – Jitendra Vyas Aug 16 '10 at 19:36
  • 2
    @metal-gear-solid — no, nothing is "most" recommended. The same provisos to XHTML 1.1 apply to XHTML 1.0. – Quentin Aug 16 '10 at 19:36
  • Are HTML 5 and CSS3 not controlled by W3C? – Jitendra Vyas Aug 16 '10 at 19:39
  • HTML5 and CSS level 3 are controlled by the W3C (well, HTML5 is partially controlled by the W3C), but they are not finished. It takes years to decades for the W3C to fully recommend a spec. –  Aug 16 '10 at 19:45
  • CSS 3 is not, as my answer states, a Recommendation yet. HTML 5 being controlled by the W3C or not could be debated, but either way, it isn't expected to be a Recommendation for another decade. – Quentin Aug 16 '10 at 19:45
  • The time taken to complete a spec has more to do with the time taken for people to completely implement it so it can be signed off. – Quentin Aug 16 '10 at 19:46
  • @David Dorward you're right; "recommend" is a more appropriate word. –  Aug 16 '10 at 19:50
0
  • 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.

Arve Systad
  • 5,471
  • 1
  • 32
  • 58
0

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.

roryf
  • 29,592
  • 16
  • 81
  • 103
0

W3C Recommendation are

  • CSS1
  • HTML 4.01
  • XHTML1.1

Still in Working Draft stage are:

  • CSS3
  • HTML5

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

udo
  • 4,832
  • 4
  • 54
  • 82