Home arrow HTML arrow Page 5 - XHTML 2.0 Explained
HTML

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
TABLE OF CONTENTS:
  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
SEARCH DEVARTICLES

XHTML 2.0 Explained - XForms
(Page 5 of 6 )

XForms: The Future of Forms

XForms give you total control over client-side form entry and are very powerful. XForms are very complicated, and covering them completely is out of the scope of this article. However, the idea is that they use XML. Everything is in the <xforms:model> tag. The form defines generic tags which are specified by XHTML. Something like this will be done:

<xforms:model>
 <xforms:instance>
  <name />
  <age />
  <sex />
 </xforms:instance>
 <xforms:submission action = "post.php" method = "post" />
</xforms:model>

Then, in regular XHTML, you would go ahead and define them however you want.

<input ref = "name">
 <label>Name: </label>
</input>

<input ref = "age">
 <label>Age: </label>
</input>

<input ref = "sex">
 <label>Sex: </label>
</input>

<submit submission = "submit">
 <label>Send</label>
</submit>

There are more complicated things you can do, too, but that is all out of the scope of this article. If you are truly interested in using XForms, check out the specification:

http://www.w3.org/TR/xforms

We are just scratching the surface of what XHTML 2.0 can do. Since it's fully integrated with XML, you can define your own namespaces however you want. The power of XHTML 2.0 is enormous.


blog comments powered by Disqus
HTML ARTICLES

- 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 
Support 

Developer Shed Affiliates

 




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