XHTML 2 & HTML5 Navigation Lists

Web Standards — Tags: , — Ardekantur @ 10:59 am

XHTML 2 vs. HTML 5 - I’m Mike:

Navigation lists have been introduced in both XHTML 2.0 and HTML 5. In XHTML 2.0, navigation is marked up using the new nl element. Navigation lists must start with a child label element that defines the list title. Following the title, one or more li elements are used to markup links. Also new in XHTML 2.0 is the ability to create a hyperlink from any element using the href attribute. Combining these features produces simple, lightweight navigation markup:

    <nl>
      <label>Category</label>
      <li href="/">All</li>
      <li href="/news">News</li>
      <li href="/videos">Videos</li>
      <li href="/images">Images</li>
    </nl>"

What’s important here is that the standards bodies begin adhering not to some ideal version of the web, but how people actually use it. Along with CSS3’s border image properties, this is a good barometer of the progress we’re making.

0 Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2008 Ardekantur | powered by WordPress with Barecity