On September 23, 2010, in Web, by Bikas

There is not much difference between HTML and XHTML and are much more similar to each other. The major differences are listed below:

  1. There should be proper nesting of XHTML tags/elements
  2. All the tags/elements must be closed else this will generate error either in the page layout or while validating the page. Example <h1>… </h1>, <p>… </p> <meta.. />, <img … />
  3. XHTML tags/elements are always written in lowercase, unlike HTML which is not case sesitive.
  4. There must be one root element for XHTML document and the child elements must be in pairs and correctly nested within their parent element. Example:
    <head> … </head>
    <body> … </body>

For more details please visit:

Tagged with: