XHTML
XHTML stands for EXtensible HyperText Markup Language.
Features
• Stricter and cleaner version of HTML.
• Combination of HTML and XML (EXtensible Markup Language).
• XHTML consists of all the elements in HTML 4.01, combined with the strict syntax of XML.
Difference between HTML and XHTML
• XHTML elements must be properly nested
Eg: <b><i>This text is bold and italic</i></b>
• XHTML elements must always be closed
Eg: <p>This is another paragraph</p>
A break: <br /> :
• XHTML elements must be in lowercase
Eg: <body>
<p>This is a paragraph</p>
</body>
• XHTML documents must have one root element
Eg:
<html> <head> ... </head> <body> ... </body> </html>
Mandatory XHTML Elements
All XHTML documents must have a DOCTYPE declaration. The html, head, title, and body elements must be present.
This is an XHTML document with a minimum of required tags:
<!DOCTYPE Doctype goes here>
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Title goes here</title> </head> <body> </body> </html>




