HTML5 or XHTML5 - Is XML's time coming? | Web Development

The Hypertext Markup Language has undergone an evolution in the form of HTML5 and CSS3. Will HTML5 be the right time to jump ship and sail ahead with XML and well formedness?

HTML5 or XHTML5 - Is XML's time coming?

Posted On: 20th Oct 2010

HTML5 or XHTML5 - Is XML's time coming?

As a developer, I strive to code websites that work across the broadest possible range of browsers. Every decision is made with the customer in mind.

 

The title of this article is a bit mis-leading since I have no intention of blindly moving to HTML5. However, it would be interesting to do a bit of crystal ball gazing and estimate when that time will be and when that time does come, will it be HTML5 or XHTML5 we switch to?

 

As with most new web technologies, it takes a LONG time for browser support to mature sufficiently to warrant using them. There exist exceptions to this rule (Unsupported Cascading Style Sheet properties are ignored gracefully) but with HTML Document Types there really is no halfway ground. They are either supported or they are not.

 

Moving on, what exactly are the factors that I should consider before selecting an (X)HTML version. Obvious isn't it? Browser support based on current market share!

 

Current browser market share as of October 2010

 

Let us start by looking at the overall market share of each browser and then determine which browsers to support and which to relegate to the catacombs. I have added the age of each browser because it's a useful indication of recent technology support.

 

My preferred source for browser market share is StatCounter. StatCounter statistics are based on hits from 3 millions sites using Statcounter with more than 15 billion hits per month. On the gs.statcounter.com website select and display statistics by browser version.

 

Browser Market Share Release Date
Internet Explorer 8 29.38% March 19, 2009
Firefox 3.6 23.94% January 9, 2010
Internet Explorer 7 12.98% October 18, 2006
Chrome 6 7.76% September 2, 2010
Internet Explorer 6 7.42% August 27, 2001
Firefox 3.5 4.39% June 30, 2009
Chrome 3.3 3.3% October 12, 2009
Safari 5 2.94% June 7, 2010
Firefox 3 2.47% June 17, 2008
Safari 4 0.87% June 17, 2009

 

As a developer, I often ask myself what I consider to be a significant enough browser market share to warrant supporting said browser. I usually go with the theory that if 1 or more people out of 100 are using a browser, then I consider that browser to be significant enough to support. The (X)HTML document type I select is based on the support across all browsers within this range. Last time I checked, the latest and best supported HTML Document Type was HTML 4.01. Is this still the case? Is XHTML now widely supported? Let us find out!

 

Could now be the time to migrate from 'HTML 4.01 strict' to XHTML?

 

From the table above, we can see that the older browser in the line-up with a considerable market share is IE 6, released on August 27th 2001. After IE 6 there is a massive 5 year gap before the second oldest browser, Internet Explorer 7, was released on October 18th 2006. This does not bode well for migrating to a more recent document type.

 

IE 6, with it's 7.42% market share, is simply too significant to ignore. Unfortunately for us, this means that all current sites we develop can't rely on technologies that are unsupported by this older browser.

 

IE 6 has official support for HTML 4.01 strict but lacks any real XML support so upgrading to any XHTML version is currently too risky.

 

What does the future hold?

 

It's relatively safe to assume that IE 6 will drop below the 1% market share barrier within the next two years. By 2012, we will start to see a shift away from IE 6 and more of a focus on IE 7 as the oldest browser in the line-up.

 

So what functionality does IE 7 support that IE 6 does not? Well, IE 7 supports many more recent CSS features but still lacks credible XML/XHTML support. IE 7 will just parse XHTML using their standard HTML parser. It may work in some cases but it is not true XML support.

 

The other browsers in the line-up do support true XML parsing. Is IE's parsing of XHTML as straight HTML enough to consider using XHTML? In my opinion, no. Their are no advantages in using a technology that has no apparent benefits over HTML other than well-formedness, especially when Internet Explorer does not even check it.

 

HTML 4.01 strict will remain the most recent and officially supported HTML Document Type for many years to come.

 

HTML5 readiness

 

First, a quick look at HTML5 readiness (html5readiness.com) reveals that chrome5+, safari5+, opera10+, firefox4+, and IE 9 (considerably less so) have good support for many HTML5 features.

 

Again, it looks like the big white elephant in the room is IE 9 when it comes to HTML 5 support. IE 9 lacks support for Geolocation, SVG filters, new Form elements, animations and transforms, whereas the other browsers already do.

 

Conclusion

 

Based on the above browser versions and current market trends, widespread HTML5 support is and will remain a very distant reality.  Unless we see a more significant shift away from Microsoft's browsers towards alternatives such as Chrome, Firefox, Safari, and Opera.

Comment(s)

Richie said...

I am also a local alresford developer. The great thing about html5 is that its backward compatible so, with some restraint, its possible to have a forward looking and semantic markup on your site. TBH since css3 became widely supported on most leading browsers I've not looked back. If a site has nice gradients or rounded corners on all but IE8 and below then so be it. All said, I guess I'm the kind of developer that doesn't like to be held back by Microsoft's limp excuses.

Posted on Sat 02 Apr 2011 @ 20:36

William Heyland said...

Until the new HTML5 features/tags become widely supported by all the major browsers, I see no reason to start using it. Unfortunately, that is not going to be any-time soon. Maybe in 5-10 years time when people no longer use IE7 and IE8.

CSS3 on the other hand, I absolutely agree with you on that one. We now use CSS3 wherever it works, including rounded corners (border-radius), shadows, RGBA, and font-face. The nice thing about CSS3 is that it degrades gracefully; if a browser does not support rounded borders (IE 6-8), then you still get nice square ones!

Posted on Mon 04 Apr 2011 @ 08:51

Nash said...

I rckeon you are quite dead on with that.

Posted on Fri 02 Sep 2011 @ 15:24

Post Comment

Name
Email
Captcha
Please enter this security word in the field below (this is to prevent spam from bots)
Comment

« Back to Blog

01962 732158
enquiries@voliacreations.co.uk

Volia, Station Mill

We have moved

Come and see us at:

Station Mill

Station Road

Alresford

SO24 9JQ

Call Volia

Call us for friendly advice

01962 732158

Volia Creations Ltd
Station Mill,
Station Road,
Alresford, Winchester
Hampshire
SO24 9JQ
Company No: 6034611
VAT No: 900125094

T: 01962 732158