spacer

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

home / experts / xml / column62

XHTML 2.0 Drafted

Sr Instructional Designer D2L-Moodle,Clearance
WSI Nationwide, Inc.
US-NJ-Fort Monmouth

Justtechjobs.com Post A Job | Post A Resume
Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs


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

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

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