Sample XHTML2 code

XHTML2 has been discussed for several years. It’s a logical evolution of HTML and XHTML. It introduces new tags that offer more flexibility and semantic value. So, what does it look like? Explorin Lauren has put together a sample page and it looks pretty simple.

XHTML2 introduces a new list item, the NL or Navigation List. Think of this as a cross between a DL and a UL. It is built similar to the UL but has a label tag.

You’ll also notice the image tag has been replaced with the more agnostic object tag.

Will you actually begin using XHTML2? Unfortunately, it’s not backwards compatible and browsers need a lot of evolving before they are ready for the new code. HTML5 is more likely the next evolution of HTML.

After working with XML for the past couple years, I would enjoy the structure of XHTML2. However, I also hate to think of the logistics of converting existing CMS sites and legacy sites to the new code. Not to mention the branching of CSS and/or JS for the new DOM elements.

Published by Ted

Accessibility is more than making sure images have alternate text. I work with engineers, product managers, and designers to understand how accessibility impacts the users, set realistic deadlines, and create the solutions to provide a delightful experience to all users, regardless of their physical, sensory, or cognitive ability.

Join the Conversation

1 Comment

  1. I think that the W3C’s effort of continuing working on 2 standards in parallel is quite doomed.
    The XHTML2 idea is something that i believe, will never get to the real life, it is way too abstract, and has way too many requirements. No web or intranet developer would survive if he had to maintain 100% standards compliance, it is just a good thought, but in the next 10-15 years, it is out of the reach.
    I am full of expectations of the new W3C working group working on the HTML5 & XHTML5 standard, which will be based (hopefully) on the WHAT-WG specifications. I agree that HTML5 should be the next natural evolution of the HTML 4.01, since even after all these years (XHTML was published 1999 if i am not mistaken), the most developers are still ignoring XHTML. Even if we progress to the XHTML, since there are a lot of good reasons, the next evolution pass should be inclusion of more required elements, and not just XML-zation of already existing standard from the 90s.

Leave a comment

Your email address will not be published. Required fields are marked *