HTML
  Home arrow HTML arrow Page 2 - XHTML 2.0 Explained
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

XHTML 2.0 Explained
By: Sasha Slutsker
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 26
    2004-08-24

    Table of Contents:
  • XHTML 2.0 Explained
  • Making the Switch
  • Get Ready for New Types of Lists
  • Sections and Headings
  • XForms
  • The MIME Situation

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    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.

    More HTML Articles
    More By Sasha Slutsker


       · It is me, the writer of the article. I just want to add that there are some examples...
       · is is just me or is anyone else thinking xhtml 2.0 is stupid.Removing <br/>Come...
       · I think it's just you. I welcome these standards as a way to help clean up the...
       · Crappy coding has very little to do with XHTML standards.And more to do with...
       · Please Kndly give a space like <br />It works now my dear.Happy...
       · Since i have made server side scripts, I hate many objects that makes much more work...
       · Who matters? Money-grubbing megacorps that are frozen in 1995 and know nothing...
       · "Removing <br/>Come on, now I have to type 5 times the code for a simple line...
       · "Seperation of content and style is one thing, but making thingslonger and harder...
       · If your scripts aren't flexible enough to allow this simple transition, then they're...
       · The space isn't necessary for anything in common use today (for example Netscape 4...
       · I have study all the documents for XHTML 2.0. But I am getting confusion here for...
     

    HTML ARTICLES

    - Text on HTML Images: Do it Yourself
    - Custom Buttons in HTML
    - Quick Web Page Menu
    - Maximizing and Restoring HTML Images with th...
    - Maximizing and Restoring HTML Images with th...
    - Handling Hyperlinks and Images in HTML
    - Quick Start with HTML
    - HTML Tips
    - Color Composition and HTML
    - HTML Fonts, Styles, and Headers
    - Uses of the New Window Command for Web Sites
    - HTML Working with Images
    - HTML: Working with Special Characters
    - HTML Forms
    - HTML Tables


     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway