spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / xml / column62

XHTML 2.0 Drafted

C/C++ Developer (NYC)
Next Step Systems
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
Developer News
Eclipse Helios Update Brings New PHP Tools
Internet Explorer 9 Ups Standards Support
JBoss Portal 5 Release Easier to Use


Links on many elements

For convenience, the XHTML 2.0 spec introduces special "attribute collections," or groupings af attributes, and applies these groupings to the individual element definitions (in addition to any element specific attributes). The main collection of attributes is called the "Common Attribute Collection," and itself is applied to the majority of elements defined in the specification. Since this Common Attribute Collection includes the attributes of the "Hypertext Attribute Collection," most elements can now make use of link attributes, such as href. This will shorten constructs like:

<h3><a href="#products">Products</a><h3>

to the more concise:

<h3 href="#products">Products<h3>

Objects everywhere

The object tag becomes the universal identifier for non-HTML content, img and applet are deprecated in XHTML 2.0. A type attribute specifies the nature of the referenced object, be it an image, Java applet, ActiveX control, or plug-in data like an SVG graph.

<applet class="Foo.class" archive="foo.jar"><param name="foo" value="bar"/></applet>
<img src="foo.jpg" alt="A foo" />

Although I am not sure about the MIME type for Java Archives (JARs), this would become:

<object data="Foo.class" archive="foo.jar" type="application/x-jar"></objectt>
<object data="foo.jpg" type="image/jpeg">A foo</object>

New stuff

One major addition to XHTML 2.0 is proposed:

Navigation lists

A new type of list is introduced besides the ordered, unordered and definition lists: The navigation list. It is a structure that is usually mimicked by a combination of unordered lists with anchor tags:

<nl>
  <name>Company<name>
  <li href="#history">History</li>
  <li>
    <nl>
      <name>Products</name>
      <li href="#sssd">Supersonic Screwdriver</li>
      <li>...<li>
    </nl>
  </li>
</nl>

This concludes our preview tour of the second version of XHTML for now. As is usually the case for a first draft, lots of things might get changed or amended during the review process. Don't hesitate to comment on the mailing list if you feel so inclined!


Produced by Michael Claßen

webref The latest from WebReference.com Browse >
Flashmaps' DynamicLocator: Interactive Maps for Small Areas · Flashmaps' AreaSelector: Interactive Maps for Wide Areas · The DB Mapper: Interactive Street-level Maps of U.S. and Canada
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags

URL: http://www.webreference.com/xml/column61/2.html
Created: Aug 21, 2002
Revised: Aug 21, 2002