Home arrow HTML arrow Page 4 - XHTML 2.0 Explained

XHTML 2.0 Explained

Although XHTML 2.0 isn't ready for general use yet, understanding how the changes will affect your writing and code will be key to a smooth transition. With full XForms integration, separation of content and function, and other features, XHTML 2.0 promises to revolutionize the Web when XHTML 2.0 arrives.

Author Info:
By: Sasha Slutsker
Rating: 4 stars4 stars4 stars4 stars4 stars / 30
August 24, 2004
  1. · XHTML 2.0 Explained
  2. · Making the Switch
  3. · Get Ready for New Types of Lists
  4. · Sections and Headings
  5. · XForms
  6. · The MIME Situation

print this article

XHTML 2.0 Explained - Sections and Headings
(Page 4 of 6 )

The old <h1> through <h6> tags are still in XHTML 2.0. However, there is a similar feature intended to replace them. Basically, one just defines a section and then has headings in the section. Something along these lines can be done:

  <h>First Point Heading</h>
  <h>Second Point Heading</h>

The point of all of this is to add a level of structure to the document. Everything is laid out simply and in a hierarchal manner. Search engines can get the information more easily, and non-visual web browsers can more easily let the blind user access the page more easily since they just have to look at the heading in the <h> tag.

The new <p> element

Unlike old versions of XHTML, in XHTML 2.0 the <p> element can contain block-level elements. (It still can't nest <p> elements, though.) What this means is that it is possible to put lists in a <p> element, tables, and all other sorts of elements. The <p> will be more of a "conceptual idea of a paragraph" according to W3C, the makers of XHTML.

Forget <hr />, introducing <separator />

Not nearly as big of a change as all the previous lists, but <hr /> has been replaced with <separator /> in order to more clearly state its purpose. It will place a separator (usually a horizontal line) in the document.

Next: XForms >>

blog comments powered by Disqus

- Does HTML5 Need a Main Element?
- Revisiting the HTML5 vs. Native Debate
- HTML5: Not for Phone Apps?
- HTML5 or Native?
- Job Hunting? Freelancer.com Lists This Quart...
- HTML5 in the News
- Report: HTML5 Mobile Performance Lags
- The Top HTML5 Audio Players
- Top HTML5 Video Tutorials
- HTML5: Reasons to Learn and Use It
- More of the Top Tutorials for HTML5 Forms
- MobileAppWizard Releases HTML5 App Builder
- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials