spacer

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

home / experts / xml / column62

XHTML 2.0 Drafted

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

On the fifth of August the W3C released the first public draft of XHTML 2.0. A first peek reveals a couple of changes as well as one major new feature. Let's look at them in turn:

Changes in 2.0 from 1.1

XHTML 1.1 was a minor update to the initial formulation of HTML in XML. A strict and a more lenient DTD were defined to balance between the goal of dividing content from presentation, and the desire for being as backward-compatible as possible to HTML 4. A third DTD for framesets was also defined.

With the second version of XHTML, further changes away from HTML and towards XML are proposed:

Nested sections and headings

Although the infamous h1 to h6 elements for headings have not been deprecated, new elements are proposed for declaring text sections and headings, section and h respectively. This enables an author to start a new section without forcing the heading to be the first element of this section. Furthermore, the nesting level will define the heading structure, not the explicit use of the h1 to h6. Paragraphs like the following:

<h2>Company<h2>
  <p>Our company is the greatest in the world.</p>
  <p>We also have the best products:</p>
  <h3>Products<h3>
    <p>For instance our supersonic screwdriver...</p>

Could be restructured into:

<section>
  <h>Company<h>
  <p>Our company is the greatest in the world.</p>
  <section>
    <p>We also have the best products:</p>
    <h>Products<h>
      <p>For instance our supersonic screwdriver...</p>

Lines instead of line breaks

The line break tag br has been deprecated in favor of a line element that should enclose a part of a paragraph to be rendered on its own line, followed by a line break:

<p>Our company is the greatest in the world.<br />
We also have the best products:<br />
For instance our supersonic screwdriver...</p>

Would turn into:

<p>Our company is the greatest in the world.
<line>We also have the best products:</line>
For instance our supersonic screwdriver...</p>

More changes...


Produced by Michael Claßen

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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

webref The latest from WebReference.com Browse >
Creating a Banking Application Deposit Script · Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

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