X/HTML 5 Versus XHTML 2

What’s Cool About XHTML 2

Any Element Can Be A Hyperlink

An href attribute can be added to any element to transform it into a hyperlink. For example:

1. That’s one small step for man, one giant leap for mankind

This is very cool!

b, i, small, big, tt, font and basefont Are Gone

XHTML 2 said goodbye to these elements, used strictly for formatting. The font element in particular has been misused in the past and has discouraged content authors from using appropriate markup.

Beyond cool!

The iframe element, which has always caused problems for users of assistive technologies, will not be missed.

A New Headings Construct

Content headings are the most important constructs when it comes to making Web pages accessible. Yet virtually no one uses headings correctly, because numbered headings constructs (h1 to h6 elements) are difficult to visualize for most people, and are almost impossible to author correctly using WYSIWYG editors. Physically, numbered headings are linear constructs (sibling elements) that are used to logically organize data into a hierarchy. So, in the following example, you have to make an effort to visualize the hierarchical structure of the content.

By contrast, the new heading construct, using the h element along with the grouping element section, makes the hierarchical relationship infinitely easier to grasp:

The blockcode element can be used instead of pre and code to write blocks of computer code. For example:

2. function get_random_name() {
3. $rand_name = “”;
4. for ($i = 1; $i <= 8; $i++) {
5. $rand_name .= chr(rand(97, 122));
6. }
7. return $rand_name;
8. }

I strongly suggest that anyone working with web design or development read through the entire article