Monday, June 20, 2011

Make Your Own TLD? (I want .bacon)

ICANN Logo

The Way We Were

Years ago the general public was aware of three primary generic top level domain extensions (gTLD): .com, .net and .org. There was a huge "land" rush as the dot-com bubble grew and organizations were willing to spend absurd amounts of money to get the .com extension for their business, even building the massive cash outlays into their business plans. Then search engine marketers (snake-oil salesmen) and web development gurus (hacks) started to push organizations to get the .org and .net versions of a domain for assorted reasons.

As ICANN moved to provide more gTLDs, many of which didn't make sense to the average user and gained little traction, we saw extensions like .aero and .museum appear. Registrars hopped on the bandwagon and promoted every new TLD as a requirement to branding your site.

Then countries got into the business by selling access to their ccTLDs, such as Tuvaloo with .tv marketed to to the television industry, and with enough advertising behind it, users started to accept them. The explosion of Twitter and the need for shortened web page addresses further promoted otherwise ignored TLDs, and services like bit.ly helped put the Libyan TLD on the map. Some of us are still curious to see how .xxx pans out.

How It Has Changed Again

As of today, ICANN has approved a process to allow organizations to apply for a TLD of their own (read the PDF press release [and you thought UDRP was complex]). If you are Google, for example, you might want .google. Apple might want .apple. It is conceivable that you could see addresses for search.google, maps.google, ipad.apple, iphone.apple, and other unlikely but possible combinations. Apparently the 22 gTLDs already in play don't offer enough variance for the web.

The process itself may be relatively straightforward. ICANN will make applications available (get the May 2011 draft of the Applicant Guidebook) from January 12, 2012 through April 12, 2012, giving companies time to develop a marketing plan and come up with justification to pay the $185,000 application fee and, if approved, the annual $25,000 fee.

With those numbers you can see the potential for a small set of players who want to give it a go. From ICANN:

New gTLDs will change the way people find information on the Internet and how businesses plan and structure their online presence. Internet address names will be able to end with almost any word in any language, offering organizations around the world the opportunity to market their brand, products, community or cause in new and innovative ways.

If my favorite "cause" ponies up that kind of money for a TLD, I can assure you I'll re-evaluate whether that cause really needs my money.

Given how inexpensive it is to obtain a domain name using one of the current TLDs, I am not sure how ICANN expects companies to justify the expense. The limited window implies that this is just an experiment, but is probably also designed to get organizations to move before they lose their chance. Whether or not the public will understand, and use, these is a different story. Instead, I see value in an existing company (with some cash) to consider finding a two-character gTLD, that is not already assigned through the ccTLDs, and rolling its URL own shortener service.

What is also not clear is what happens when two valid organizations in different spaces apply for the same gTLD. If Champion (spark plug makers) and Champion (t-shirt makers) apply for .champion, how is that sorted out and is the application fee lost for the loser of that decision? Here's ICANN's answer from the FAQ:

It is not feasible for two or more identical strings to occupy the Internet space. Each name must be unique. If there are two or more applications for the same string (or confusingly similar strings), the String Contention procedures would come into effect. Refer to module 4 of the Applicant Guidebook for more detailed information regarding the String Contention procedure.

Module 4 defines two methods in the String Confusion Dispute Resolution process to address this (with the presumption that the parties at odds with one another weren't able to sort it out on their own):

  1. Community priority evaluation,
  2. Auction

The first one only applies to community-based organizations and an unspecified deposit is required to participate. The second one, the auction, isn't allowed when the extension is for a geographic name. The document then goes into detail outlining the concept of an auction along with general rules (currency, defaulting, etc). At that point, it truly is a pay-to-play scenario.

Conclusions?

Given how many users still type a web page address into Google search, will the new gTLDs really matter? I'm not sure I understand the problem hat ICANN thinks it is solving, or the business case to justify the purchase, but I am also not privy to the players on the board or the pressure they might be getting elsewhere.

The video below shows the vote — well, it shows the vote for the change, but pans away so you don't see how many voted against this or abstained (13 for, 1 opposed, 2 abstentions).

Related

Update: 10:15pm

Mashable, a resource I generally consider good for quickly covering stories but not so good for providing much depth, has taken some time today to review the ICANN guidebook for the new gTLDs and put together the post 9 Things You Need to Know About ICANN’s New Top Level Domains. It's not terribly detailed, but it does provide a good, quick overview if you need to know something right now. You know, because January is right around the corner.

Update: June 13, 2012

ICANN has announced the list of requested gTLDs. I provide links and list some my favorites at the new post ICANN Announces Requested gTLDs.

Update: May 8, 2013

The marketing manager for names.co.uk guest-writes a post at .net Magazine ("Google sets precedent for new gTLDs to be open") detailing how Google may be opening up any of the new gTLDs it acquires, instead of restricting their use to just Google brands. The writer hopes others will follow Google's lead.

Tuesday, June 7, 2011

CSS 2.1 is Finally Final

W3C It's only been 13 years, but CSS version 2.1 is now officially a W3C Recommendation — essentially meaning the specification is final. Which of course means you are now all free to use it in your web pages.

CSS2 became a W3C Recommendation on May 12, 1998, over 13 years ago. Since then the CSS Working Group has been developing CSS Level 2 Revision 1 (CSS 2.1) to correct errors and omissions from the original CSS2 specification. For context, the HTML 4 specification was approved on April 24, 1998. The HTML 4.01 specification was approved on December 24, 1999. Between those two versions, little more than a year and a half passed.

The W3C has a slightly confusing progression of a specification before it is considered a "standard." There are essentially four steps:

  1. Working Draft (WD): This is the first time a proposed specification is shown to the public and open for comment.
  2. Candidate Recommendation (CR): Significant features are mostly locked and feedback is requested in how to implement the standard.
  3. Proposed Recommendation (PR): The specification has been submitted to the W3C Advisory Council for approval. Changes at this point are rare.
  4. W3C Recommendation (REC): The specification is final and endorsed by the W3C. This is what the general public considers a final standard.

In July of last year I wrote up a post about the CSS 2.1 specification status ( CSS 2.1 Still Not Final). Bruce Lawson picked up on the irony in my post (or at least my bewildered expression) and used humor to convey just how this hasn't stopped anyone from implementing it for the last decade-plus (CSS 2.1 “not ready for use” says journalist).

The key reason that this is newsworthy is because CSS level 3 (CSS3) is relying on CSS 2.1 to be wrapped up before it can move forward to the final steps. The CSS Working Group acknowledges that future CSS specifications rely on this final step (read the original release from June 30, 2010: An Update on CSS 2.1):

[CSS] 2.1 must be released as a Web Standard because that's one of the current cornerstones of the architecture of the World Wide Web. We cannot make the next steps, CSS 3 even module by module, happen without 2.1 before.

In case you want to replace the last version of the CSS 2.1 specification that you have hanging on your refrigerator, you can grab the latest (today's) version at the W3C site:

Just to make sure CSS3 isn't lost in the certain global buzz over CSS 2.1, the W3C pushed two more CSS specifications to W3C Recommendation status today:

For further reading, visit the press at the W3C site:

Update: June 10, 2011

Net Magazine has a brief piece on the wrap-up of CSS 2.1 by interviewing some known standardistas and getting their thoughts on the milestone approach versus the constant iteration approach: It's official: W3C finalises CSS 2.1

Monday, June 6, 2011

Testing IE Versions via IE Compatibility Modes

Internet Explorer logo This past week I have encountered people asking about testing for Internet Explorer browser versions in real life, on Twitter, via email, and spray-painted under a bridge (along with the phrase I don't want the world, I just want your half). I have seen response after response directing web developers to simply use the different browser modes in Internet Explorer 9 for browser testing, in particular addressing those who are using Macs and do not want to install multiple versions of Windows for each browser instance.

I whipped up some HTML and CSS of the most basic (and invalid) sort to run my installations of Internet Explorer through the paces. Historically I have found subtle differences between the emulation modes and how the original version of a browser (specifically IE) might render a page. This time out I simply found the emulation mode testing process so confusing that I suspect many developers who rely on this method are doing it incorrectly.

Four Versions of Internet Explorer

These images represent screen shots from Internet Explorer versions 6, 7, 8 and 9 — the full install version of each, using default settings, no emulators. For the most part we can see differences between IE6, IE7 and IE8, while the differences between IE8 and IE9 are negligible.

Screen shot in IE6.
Internet Explorer 6

Screen shot in IE7.
Internet Explorer 7

Screen shot in IE8.
Internet Explorer 8

Screen shot in IE9.
Internet Explorer 9

You can see that IE6 has trouble with the 24-bit transparent PNG files, and both IE6 and IE7 apply the padding to the wrapper element differently than IE8 and IE9 do. IE6 is also not setting the height of the element that is the green box, but from IE7 onward the height declaration is honored.

Internet Explorer 9 as an Emulator

The problem is that once you install IE9 you are kind of stuck. Unless you are willing to spin up a virtual machine for the last few versions of IE you want to test (and I still recommend you at least see how IE6 will munge your pages), you have to rely on emulators. Many developers think that IE9 will allow them to see how older versions of the browser saw pages, and to some extent it will. The confusing part is that not only is there a Browser Mode setting, there is also a Document Mode setting. Using combinations of those two settings, I generated the following screen shots:

creen shot in IE9. Browser Mode: IE7. Document Mode: IE7.
Internet Explorer 9. Browser Mode: IE7. Document Mode: IE7.

Screen shot in IE9. Browser Mode: IE8. Document Mode: IE7.
Internet Explorer 9. Browser Mode: IE8. Document Mode: IE7.

Screen shot in IE9. Browser Mode: IE8. Document Mode: IE8.
Internet Explorer 9. Browser Mode: IE8. Document Mode: IE8.

But those aren't all the modes. You can also run the browser in the following slightly confusing modes. You might notice that "Quirks Mode" most closely resembles the rendering in IE6 above, without the issues displaying PNG files. This is as close as you can get to testing IE6, and even that doesn't do justice to some of the rendering issues of that rather old browser.

Screen shot in IE9: Quirks Mode.
Internet Explorer 9: Quirks Mode.

Screen shot in IE9 Standards Document Mode
Internet Explorer 9: IE9 Standards Document Mode

Assuming you simply toggle the "Compatibility Mode" in IE9, which of all the above combinations do you think you'll get? Or better yet, how do you think your page will render? This experiment shows that it most closely resembles the rendering used for its IE7 browser and document modes. I would have expected it to use IE8, or at least some clear indication of which browser version it is trying to emulate. This example alone shows that even a quick cross-browser test in IE9 to test older versions of IE may provide unexpected results.

Screen shot in IE9: Compatibility Mode.
Internet Explorer 9: Compatibility Mode.

Even if you understand all the document and browser modes available in the IE developer tools, that doesn't mean your web staff, client, or random web savvy user will. The best way to truly test how a site renders in older versions of a browser is not by running emulators, but by running the versions of those browsers themselves.

If you still insist on going down the path of testing using emulators, you should take a few minutes to read the Microsoft article, Testing sites with Browser Mode vs. Doc Mode. The article outlines what each of those settings means and how it adjusts the rendering of the page.

The article makes an assumption, however, that as a developer you will want to serve up different doctypes and meta tags based on how the browser reports itself in the user agent string as defined by the Browser Mode. This image illustrates that:

Flow chart showing IE's versioning and compatibility system.

If you do have a site that adjusts itself based on the browser, given the extra steps to configure the browser, test and compare differences, it's still probably easier and definitely fool-proof to use the specific version of IE that you want to test. This way you don't have to worry about incorrectly read UA strings or mis-selected settings in your browser emulator.

Conclusion

Suck it up and install some virtual machines to get each version of Internet Explorer for testing.

Update: February 4, 2013

Microsoft has made virtual machines with old IE versions available to developers at its Modern.IE site. There really is no excuse now to claim you can't test in older versions of Internet Explorer.

Update: March 14, 2013

Typekit points out the dangers of cross-browser testing with IE9′s Browser Modes when it comes to font rendering. Typekit comes to the same conclusion as I do: Instead, you should test with real installed copies of IE7 and IE8[.]

Update: March 15, 2013

Found this post on Stack Overflow, dated just a couple months before I wrote this post: How well does IE7/8 mode in IE9 compare to actually running IE7/8? Many specific issues there.

Monday, May 30, 2011

Is RSS at Risk?

RSS logo with bullet holes. I spent about a thousand words explaining RSS before I realized that, for the most part, if you are reading this blog I have to guess you have some familiarity with it (at least by just having heard of it). If you need some background, Wikipedia has a pretty good overview on RSS.

If you are a web site developer or author, there are three methods to get your Twitter feed or your Facebook business page information integrated into your site: via some sort of JavaScript-driven widget, via an API that is unique to each, or via RSS. This isn't limited to just Twitter and Facebook. PicPlz, Foursquare, and others provide these methods as well.

A JavaScript widget (whether via an embedded iframe or not) typically does not integrate well with a site, forcing the branding of the service, its color scheme, and its styles. For many sites, a Facebook widget or Twitter widget can look very out of place, almost like an afterthought. On top of this, because these widgets rely on JavaScript so heavily there is no alternative for those without JavaScript support (whether by choice, by restrictions, or by errors elsewhere on the page — see my post Beyond Hash-Bangs: Reliance on JavaScript Is a Bad Idea)

The API approach gets around styling issues, but often each API has its own proprietary offerings and syntax, requiring you as the developer to learn it, integrate it with your own platform, and spend time maintaining it as the API changes (possibly on a whim). While using this method you have control over how the data is styled on your site, relying on a free service means that you will have less input and recourse should a feature suddenly change (as I say, free doesn't mean good: You Get What You Pay For). Many APIs are reliant on JSON solutions as well, requiring JavaScript to perform the calls, and therefore the rendering, unless you are processing all of the features server-side.

The third method I mention, and the point of this post, is RSS. Because RSS has a standardized XML structure behind it (spread across parallel but unique versions, not counting variants like ATOM), as a developer you always know what to expect from an RSS feed. A JavaScript developer can just as easily parse the XML structure as a server-side coder. Once you have built a function to parse and display an RSS feed from one source, you can re-use it for any other RSS feed, forking it if you want to present the data in a different way on your site. This means you have complete control over the presentation (HTML, CSS and code structure).

In addition, most blog platforms (I'd say all, but someone might surprise me with one I don't know) not only provide RSS feeds of their data (and can even rely on a service like FeedBurner to provide additional RSS versions), they also support RSS import. This little feature means that if you provide content from your site as an RSS feed, any blogger can integrate it into his or her blog with only a few clicks.

An example of just how robust RSS can be is demonstrated with podcasts (and even vodcasts). The structure of a podcast file is really just an RSS feed with attachments, much like you might attach a file to an email. A regular RSS reader should be able to process the file, even if it cannot play the music. A podcast reader should, conversely, be able to read a standard RSS feed, even if there is no music to play.

Another powerful adaption is GeoRSS, which allows geographic data to be embedded in a feed. Syndicated content can be associated with locations on a map, something which has proven to be useful to the rise of location-based social media. For example, you can get your Foursquare history as an RSS feed, with each location tagged with geolocation data. In fact, a precursor to Foursquare, Brightkite, allowed users to generate custom RSS feeds to track specific spans of time, locations, groups of users, and even control how many items to display. When it came time for Brightkite to shutter its location-based services, it made all user data available to its users via RSS feeds.

Because of these reasons I have typically ignored hype expressing that RSS is on its way out. And then I stumbled across the post Twitter and Facebook Both Quietly Kill RSS, Completely, which was followed up a couple weeks later with Facebook Listens. RSS Added Back to Pages. Will Twitter be next?

This reminded me of an exchange I had on the Picplz API mailing list, where I asked if they would update the RSS they provided with geolocation data (since most photos are associated with a venue pulled from Foursquare). I was told that the RSS pre-dates the API and essentially that there aren't any changes in the pipe.

In just the last few days I have been struggling with the new MapQuest, trying to figure out how to embed GeoRSS in the new platform. In addition, I noticed that my "classic" MapQuest maps were no longer showing the embedded GeoRSS. After going through the support forum I found that GeoRSS is not (yet) supported in the new MapQuest, and nobody had noticed that it appears to be broken on the classic MapQuest (the solution they told me I should use for now).

So now I find myself wondering about the future of RSS. When Google Chrome doesn't even show an RSS icon or format it for display, when a new location-based service isn't adding the GeoRSS features, when a major mapping service doesn't support GeoRSS in its latest release, when Twitter buries the link for RSS, and when Facebook toys with its removal, I am concerned that they are contributing to the eventual demise of RSS.

I understand that content drivers (Twitter and Facebook) who survive on advertising revenues want to drive their brand and, ideally, their advertising to end users. Widgets that include a brand and drive people back to the advertising on the parent site make sense. For services and platforms (Picplz and MapQuest), pushing developers to a proprietary API increases the developers' investment in your platform, making it less likely for them to peel off when they can't simply apply their code to the next shiny new thing.

Unfortunately, these all combine to make the barrier to content syndication higher for everyone. While we can still wield an RSS parser to syndicate much of this content (often the one built into a blog, but typically a module within a CMS or other platform), it may be a matter of time before we lose the freedom to rapidly and repeatedly re-use a tool already in our belt. It may also be a matter of time before we as developers forget we should always build an RSS feed when we are instead enamored with the ability to claim our product or service has an API — even if it's not offering any more than an RSS feed can offer.

As developers we need to make sure we are helping our users, future developers, and ultimately our clients, by leveraging standardized tools. When it comes to content syndication and generally sharing data, RSS is the common denominator and typically worthy of implementation as the first step in a solution. If we aren't continuing to use it and expect it, the walled gardens and self-congratulatory APIs will catch up to us.

Related

Friday, May 27, 2011

HTML5 Goes to Last Call (of First Step)

HTML5 logo If you follow the ongoing developments of HTML5, by which I mean the W3C specification and not the regular JavaScript and CSS sites-of-cool-gee-whiz bandied about across the web (Apple.com (Not Really) Updated to HTML5, Google Doodle: Bouncy Balls Aren't HTML5, Google, Arcade Fire Confused on HTML5), then you probably know that it has gone to Last Call as of two days ago. I think, however, that we all need a little context for what this means.

The version of HTML5 I am referencing here is the W3C version, not the WHATWG version. WHATWG has already stated that it will not be releasing discrete versions of HTML, owing partly to the modular nature of the specification. The W3C, however, is still keeping versions and sending the core HTML5 specification and related specifications to last call. Both organizations have been providing updates as they have them (W3C and WHATWG Provide HTML5 Updates), not counting the public mailing lists.

To clarify further, there are six specifications heading into last call, one of them is HTML5. The specifications are:

And just to keep things interesting, the W3C published three other documents at the same time, which are related to the six specifications mentioned above:

What's important to note here is that last call in this context does not mean that the HTML5 specification will be ready at 4:15am (in Buffalo, bars are open to about 4am, so last call is at about 4am). This is simply the last part of the first step of a four step process. The four steps:

  1. Working Draft (WD): This is the first time a proposed specification is shown to the public and open for comment.
  2. Candidate Recommendation (CR): Significant features are mostly locked and feedback is requested in how to implement the standard.
  3. Proposed Recommendation (PR): The specification has been submitted to the W3C Advisory Council for approval. Changes at this point are rare.
  4. W3C Recommendation (REC): The specification is final and endorsed by the W3C. This is what the general public considers a final standard.

To recap, we are approaching the end of the Working Draft step. This meets the timeline that the W3C laid out in the HTML Working Group Charter and a press release from mid-February (ok, Valentine's Day) of this year. The schedule that working group has been pushing all along puts the final release of HTML5 in the second quarter of 2014. The dates as laid out in the charter, as they correspond to each step in the process

  1. Working Draft (WD): Last call: 2nd Quarter 2011
  2. Candidate Recommendation (CR): 2nd Quarter 2012
  3. Proposed Recommendation (PR): 1st Quarter 2014
  4. W3C Recommendation (REC): 2nd Quarter 2014

If the HTML working group keeps making its deadlines, we are still three years out from a final standard (or set of standards, really). Given how complex these all are and how much debate is happening among them, it shouldn't be a surprise that it can take this long. For example, these two posts helped re-open the issue of alt attributes in HTML5: Image alt Attributes Not Always Required in HTML5, More on Image alt Requirement in HTML5.

If we're practical about all this, and I'd like to think we are, we are in the midst of a new set of browser skirmishes that have resulted in greater and greater support for many of the features to be included in HTML5 and its related specifications. Even if the semantic meaning of all the new elements can't be harnessed in CSS or even in search engine parsing, some of the more advanced features can be used in some of the more advanced browsers. These are all contributing to testing the specifications, something necessary for a specification to keep moving forward (indeed, test suites are a necessary part of the natural flow).

If you are interested in contributing to the specification, you have until August 3, 2011 to get your feedback to the working group. If you want more detail on what you can do or what is expected, go read the FAQ for HTML5 Last Call.

Now I'd like to put a little context in place here. Nearly a year ago I wrote about how CSS 2.1 was not yet a final specification (CSS 2.1 Still Not Final). CSS 2.1 was in the second step as a Candidate Recommendation. the CSS 2.0 specification was finalized in May 1998, but it's taken over 12 years to move the 2.1 revision along. That has not, however, stopped its real-world implementation by developers. It also helps that CSS 2.1 is just building on CSS 2, so it's not quite a fair analogue.

Related

Monday, May 2, 2011

More on Image alt Requirement in HTML5

HTML5 logo -- I am the 'alt,' not the 'title' Nearly two weeks ago I wrote up a post outlining the W3C decision to no longer require the alt attribute on images in HTML5: Image alt Attributes Not Always Required in HTML5. I was genuinely surprised to see that was the most popular post on this blog and garnered the most re-tweets on Twitter I've ever had.

I pulled the alt decision off the W3C mailing list, before it was officially announced in any forum, so I suspected it might languish in obscurity for a while. I wasn't quite right. First, to recap the decision:

  • The presence of aria-labelledby does not make missing alt conforming.
  • The presence of role=presentation does not make missing alt conforming.
  • The presence of <meta name=generator> makes missing alt conforming.
  • Use of private communications does not, in itself, make missing alt conforming.
  • The presence of title makes missing alt conforming.
  • The presence of figcaption makes missing alt conforming.

Just over a week later, Steve Faulkner, member of W3C HTML Working Group along with other W3C working groups, provided a more in-depth and detailed overview, including a re-hash of the full decision in his post HTML5 Accessibility Chops: the alt decision.

On Friday, the HTML Accessibility Task Force mailing list took up the discussion of the alt attribute, starting in the email with the subject "[text] updated draft of clarification on alt validation." This message outlines the response to the alt decision, specifically targeting those issues with which the Accessibility Task Force has taken issue.

To distill the response on why the exception for the presence of <meta name=generator> should be re-examined (these are just the key points, descriptions of each are in the email):

  • Evidence: deliberately omitting alt due to generator exception.
  • Evidence: list of authoring tools (mis)using the meta generator.
  • Evidence: lack of alt checking is harming:
    • A reintroduction of versioning.
    • Two tier document quality.
    • Generator is already in use for other purposes.
    • Drops all requirements on the floor.
    • Alternatives to the generator exception.

A distilled high-level list of why the presence of a title attribute obviates the need for an alt:

  • Title has taken on the role of a visual element in the form of a tooltip and invisible when images are turned off, but alt is visible when images are turned off.
  • Where images are disabled or inaccessible in current browsers such as smartphones saving bandwidth, title will be useless to users.
  • Title text will now be generated on even decorative images, negatively impacting the user experience.
  • A link to screenshots (IE8, Firefox, Chrome, Opera, Safari) is provided as an example of how a title and alt display when images are disabled.

Finally, on the decision that <figure> with an associated <figcaption> allows the exclusion of alt (also distilled):

  • Given that <figcaption> lends itself to verbose text, this may be far more than is necessary for an end user, and removes the ability for the user to choose.
  • Current use of <figcaption> tends to be for images users can see, whereas alt is for images users cannot see.
  • Screen readers do not currently support <figcaption>, meaning it cannot effectively replace alt today.

Further discussion on this draft is scheduled for a meeting among the W3C HTML Accessibility Task Force today (May 2). In the meantime, feedback has been rolling in from other members on the list, some of them challenging the assertions made in the draft response. You can continue to follow the discussion by reading the thread in the April 2011 mail archive. Since May has just started and this thread crosses into May, you can catch up on the most recent discussion in the May 2011 mail archives.

Sadly, as evidenced by my posting silence for most of April, I won't be able to follow the results of a meeting today and will probably have to wait for the news like everyone else. If this topic interests you , then you may want to follow along on the W3C mailing list archives.

Tuesday, April 19, 2011

Image alt Attributes Not Always Required in HTML5

W3C 'Official' HTML5 logo It has long been accepted that the alt attribute of the <img> element, while not a perfect method to provide a text alternative to an image, is still a necessary attribute to provide at least some level of access to the image content for users who cannot see the image (whether by disability or otherwise).

The alt attribute is required on images in HTML 4.01. The notion that the alt is a de facto required attribute in future versions of HTML is echoed in the WCAG version 1.0 and 2.0 (7.1 of WCAG 1.0, H67 and F38 of WCAG 2.0). It is even stated as much in the latest W3C HTML5 working draft document, HTML5: Techniques for providing useful text alternatives, as you can see in this sample conformance item:

When an image is decorative and it is the authors intent that it not convey any information, an empty alt attribute SHOULD be considered as an indication that the image can be safely ignored.

The W3C uses the strongest language in its arsenal when it says an alt should be used, even in this example of an empty attribute.

Yesterday the W3C mailing list rendered a decision on Issue-31 and Issue-80 (a combined issue). This issue was last reported by Ian Hickson of WHATWG on the W3C mailing list. Confusing though that may be, it's still a decision on the W3C list. The issue summary (not the decision):

Require that authors include alternative text for images. Provide detailed instructions and examples for doing so to all readers of the HTML specification.

The decision as outlined on the mailing list:

  • The presence of aria-labelledby does not make missing alt conforming.
  • The presence of role=presentation does not make missing alt conforming.
  • The presence of <meta name=generator> makes missing alt conforming.
  • Use of private communications does not, in itself, make missing alt conforming.
  • The presence of title makes missing alt conforming.
  • The presence of figcaption makes missing alt conforming.

Essentially, if you use a title attribute on your image, or wrap it in a <figure> with an associated <figcaption>, then you may exclude the alt attribute. In addition, the presence of a <meta name=generator> element, which implies the HTML was generated by some sort of WYSIWYG editor or automated tool, also makes the absence of an alt attribute valid.

There are arguments on both side of the issue, and the decision handed down on the mailing list does a good job of collecting them, even if the qualification of each may be cause for dissent. Given that the W3C is pushing HTML5 to Last Call status next month, it's unlikely this will change.

Warning: Opinion

An alt attribute is intended to describe the image to which it is affixed, but the (redundant) title attribute has been implemented by authors to provide more value to users owing to browsers typically rendering it as a tool-tip. While this doesn't preclude an author from inserting an alt as well, it also may result in use of solely the title when it may not offer a sufficient description of the image.

The argument for excluding alt in the presence of a <figure> and associated <figcaption> element applies best when the browser supports those elements. In time they will, but given the collection of users still on IE6, older assistive technologies, and the lack of understanding of these new elements, this leaves a gap for some users. This isn't a clean transition with a guarantee of the same level of accessibility as outlined in the current HTML 4.01 specification and accompanying WCAG versions.

I do not agree with letting an HTML page off the hook simply because it has been generated by an automatic tool of some sort (relying on the <meta name=generator> block of code). This is really included to allow generated HTML5 to validate, not because the tools are incapable of inserting a blank attribute value (though they may not have been coded to do so). The argument against this references the current lack of support for ATAG guidelines within HTML editors and generators. I think this caters to ego by allowing authors to claim validation that would otherwise fail.

In the end, I think the best approach (at least for web developers and authors) is to still require it in all cases, reducing the need for seasoned web developers to retrain themselves. Ideally, these web developers would still continue to include alt attributes in all cases. Developers of HTML editors/generators (who care about the output) will hopefully follow suit instead of inserting additional complexity at the risk of misunderstanding (and mis-coding) these new rules. Makers of HTML editors/generators that cannot implement the spec should not be given a free pass.

If you're really interested in <img> attributes on the chopping block, read up on the fun regarding longdesc at longdesc in HTML5.

Update: April 27, 2011

Steve Faulkner, member of W3C HTML Working Group along with other W3C working groups, provides a more in-depth and detailed overview, including a re-hash of the full decision in his post HTML5 Accessibility Chops: the alt decision.