Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.



Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this


  1. 1. XHTML
  2. 2. <ul><li>XHTML stands for EXtensible HyperText Markup Language </li></ul><ul><li>XHTML is aimed to replace HTML </li></ul><ul><li>XHTML is almost identical to HTML 4.01 </li></ul><ul><li>XHTML is a stricter and cleaner version of HTML </li></ul><ul><li>XHTML is HTML defined as an XML application </li></ul><ul><li>XHTML is a W3C Recommendation </li></ul>
  3. 3. <ul><li>We have reached a point where many pages on the WWW contain &quot;bad&quot; HTML. </li></ul><ul><li>The following HTML code will work fine if you view it in a browser, even if it does not follow the HTML rules: </li></ul><ul><li><html> <head> <title>This is bad HTML</title> <body> <h1>Bad HTML </body> </li></ul>
  4. 4. <ul><li>XML is a markup language where everything has to be marked up correctly, which results in &quot;well-formed&quot; documents. </li></ul><ul><li>XML was designed to describe data and HTML was designed to display data.  </li></ul>
  5. 5. <ul><li>XHTML is not very different from the HTML 4.01 standard. </li></ul><ul><li>So, bringing your code up to the 4.01 standard is a good start. </li></ul><ul><li>The Most Important Differences: </li></ul><ul><ul><li>XHTML elements must be properly nested </li></ul></ul><ul><ul><li>XHTML elements must always be closed </li></ul></ul><ul><ul><li>XHTML elements must be in lowercase </li></ul></ul><ul><ul><li>XHTML documents must have one root element </li></ul></ul>