Home arrow HTML arrow Page 2 - 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 - Making the Switch
(Page 2 of 6 )

In XHTML 2.0, a lot of tags are being removed from the DTD and others are being introduced. There will be no more <img>, <b>, <i>, or <br />, tags, as well as others. Once again, the idea is to separate content and layout completely. Here, we will just go through the basics.

No more <img> tags?

The <object> tag has already replaced the <applet> tag and other similar tags, but now it will replace the <img> tag too. Instead of...

<img src = "someimage.png" alt = "Some Description" />

...it is now...

<object data="someimage.png" type="image/png">Some Description</object>

Lines, not line breaks

The <br /> tag is now gone in favor of the new <line> tag. This is used like so this: (note that the first line is the old way and the second is the new way)

in XHTML 1.0:  Mary had a little<br />lamb
in XHTML 2.0:  <line>Marry had a little</line>lamb

The point of this is that now you can use CSS to change the way the <line> tag works. Also, XHTML 2.0 will also have fewer self-closing tags.

You don't need an <a> tag to link

It will now be possible to link to pages without using the <a> tag. Basically, here is the old and new way of doing it:

in XHTML 1.0:  <h1><a href = "page2.html">Link</a></h1>
in XHTML 2.0:  <h1 href = "page2.html">Link</h1>

This looks cleaner, makes sense, and will also save you some time making all of those links.

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