Tutorials Point


  XHTML Tutorial
  XHTML References
  XHTML Tools
  XHTML Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

XHTML Summary

previous next AddThis Social Bookmark Button


Advertisements

Now you have understood all the concepts related to XHTML. So you should be able to write your HTML document into a well formed XHTML document and cleaner version of your site.

HTML to XHTML Conversion:

I am again repeating important steps if you want to convert your existing HTML site into XHTML site.

  • To convert your existing content, you must first decide which DTD you're going to adhere to and include document type definition at the top of the document.

  • Make sure you have all other required elements. These include a root element <html> that indicates an XML namespace, a <head> element, a <title> element contained within the <head> element, and a <body> element.

  • Convert all element keywords and attribute names to lowercase.

  • Ensure that all attributes are in a name="value" format.

  • Make sure that all container elements have closing tags.

  • Place a forward slash inside all standalone elements. For example, all <br> elements should be rewritten as <br />.

  • Designate client-side script code and style sheet code as CDATA sections.

XHTML next versions:

Still XHTML is being improved and its next version XHTML 1.1 has been drafted. We have discussed this in detail in XHTML Version 1.1 chapter.

XHTML Tags, Characters, Entities:

XHTML tags, characters and entities are same HTML, so if you already know HTML then you do not need to put extra effort to learn these subjects specially for XHTML. We have listed out all HTML stuff alongwith XHTML tutorial as well because they are applicable to XHTML as well.

What is Next?

We have listed out various resources for XHTML and HTML so if you are interested and you have time then I would recommend you to go through these resources to enhance your understanding on XHTML. Otherwise this tutorial must have given you enough knowledge to write your web pages using XHTML.

Please send me your feedback at webmaster@tutorialspoint.com

Thanks.
Webmaster, Tutorialspoint.com



previous next Printer Friendly

Advertisements


  

Advertisements