On 2005-05-27 (ISO Date), a working draft of XHTML 2.0 is published (not yet authorized).
XHTML 2.0 draft breaks backwards compatibility with previous versions. This is, in effect, a new markup language created to overcome HTML/XHTML limitations. XHTML 2.0 suggests to use XHTML strictly for structure and style sheet for presentation, supports more internationalization features, and introduces a lot of new elements and features. Below is some of them listed.
- Navigation lists: You would have used/observed navigation methods consisting of a collection of links to other parts of the site, presented vertically, horizontally, or as a drop-down menu. To support this type of usage, XHTML 2 introduces the navigation list element <nl>, which codifies such parts of documents, and allows different presentational idioms to be applied.
- Any element may have a src attribute, which specifies a resource (such as an image) to load instead of the element. If the resource is unavailable (because of network failure, because it is of a type that the browser can’t handle, or because images have been turned off) then the element is used instead.
- Any element can now have a hyperlink, since href and its associated attributes may now appear on any element. So for instance, instead of <li%gt;<a href=”home.html”>Home</a><li>, you can now write <li href=”home.html”>Home</li>.
- <hr> has been renamed to <separator>.
- Introduced a new element, <l> for line breaks, instead of <br />. This represents a semantic line of text (e.g., a line of verse or a line of computer code).
- The img element is a holder for embedding attributes such as src. Since these attributes may be applied to any element, the img element is not strictly necessary, but is included to ease the transition to XHTML2.
- Uses XML Events to specify event handling, giving greater freedom in the ability to handle events, which uses the XML Document Object Model.
- XForms to replace HTML forms.
- XFrames to replace HTML frames.
- The section element, in conjunction with the h element, offers a mechanism for structuring documents into sections. This element defines content to be block-level but imposes no other presentational idioms on the content, which may otherwise be controlled from a style sheet. The heading elements (i.e. <h1>, <h2>, <h3>, etc.) will be deprecated in favour of the single element <h>.
- The presentational elements <i>, <b> and <tt> will be absent from XHTML 2.0. The only presentational elements remaining will be <sup> and <sub> for superscript and subscript respectively.
- The p element represents a paragraph. In comparison with earlier versions of HTML, where a paragraph could only contain inline text, XHTML2’s paragraphs represent the conceptual idea of a paragraph, and so may contain lists, blockquotes, pre’s and tables as well as inline text. Note however that they may not contain directly nested p elements.
- The abbr element indicates that a text fragment is an abbreviation (e.g., W3C, XML, Inc., Ltd., Mass., etc.); this includes acronyms.
- blockcode element to indicate that its contents are a block of “code”.
- The cite element contains a citation or a reference to other sources.
- The code element contains a fragment of computer code.
- The dfn element contains the defining instance of the enclosed term.
- The kbd element indicates input to be entered by the user.
- The quote element designates an inline text fragment of quoted text.
- Rather than use explicit ins and del elements to mark changes in a document, an attribute edit may be used on any element for the same purpose.
- The samp element designates sample output from programs, scripts, etc..
- The var element indicates an instance of a variable or program argument.
Read more : XHTML 2.0 working draft at W3C
Be the first to comment