XHTML or Extensible Hypertext Markup Language, is the latest version of HTML. Technically, XHTML is not a programming language, but rather a markup language. This tutorial gives a complete understanding on XHTML. |
XHTML Tutorial
XHTML Summary
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.
Subscribe to:
Posts (Atom)