Pageviews

XML Technologies

XHTML(Extensible HTML) -A stricter and cleaner XML based version of HTML. XML DOM (XML document object model)- A standard document model for accessing and manipulating XML:
   XHTML stands for EXtensible HyperText Markup Language. It is the next step in the evolution of the internet. The XHTML 1.0 is the first document type in the XHTML family.
XHTML is almost identical to HTML 4.01 with only few differences. This is a cleaner and stricter version of HTML 4.01. If you already know HTML, then you need to give little attention to learn this latest version of HTML.
XHTML was developed by World Wide Web Consortium (W3C) to help web developers make the transition from HTML to XML. By migrating to XHTML today, web developers can enter the XML world with all of its benefits, while still remaining confident in the backward and future compatibility of the content.
The Most Important Differences from HTML:
Document Structure
  • XHTML DOCTYPE is mandatory
  • The xmlns attribute in <html> is mandatory
  • <html>, <head>, <title>, and <body> are mandatory
XHTML Elements
  • XHTML elements must be properly nested
  • XHTML elements must always be closed
  • XHTML elements must be in lowercase
  • XHTML documents must have one root element
XHTML Attributes
  • Attribute names must be in lower case
  • Attribute values must be quoted
  • Attribute minimization is forbidden
EXAMPLE 
<html>
<head>
  
<title>This is bad HTML</title>

<body>
  
<h1>Bad HTML
  
<p>This is a paragraph
</body>