What is the difference between HTML and XHTML? XHTML and HTML most important differences ~ Interview Questions & Answers
5:24 PM
The Most Important Differences from HTML:
Document Structure
- XHTML DOCTYPE is mandatory
- The XML namespace attribute in <html> is mandatory
- <html>, <head>, <title>, and <body> is 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
0 comments:
Post a Comment