Horje
The Most Important Differences from HTML
  • <!DOCTYPE> is mandatory
  • The xmlns attribute in <html> is mandatory
  • <html>, <head>, <title>, and <body> are mandatory
  • Elements must always be properly nested
  • Elements must always be closed
  • Elements must always be in lowercase
  • Attribute names must always be in lowercase
  • Attribute values must always be quoted
  • Attribute minimization is forbidden






Related Articles
HTML Versus XHTML HTML vs. XHTML
XHTML? HTML vs. XHTML
Why XHTML? HTML vs. XHTML
The Most Important Differences from HTML HTML vs. XHTML
Why XHTML - <!DOCTYPE> Is Mandatory HTML vs. XHTML
Why XHTML Elements Must be Properly Nested HTML vs. XHTML
Why XHTML Elements Must Always be Closed HTML vs. XHTML
Why XHTML Empty Elements Must Always be Closed HTML vs. XHTML
Why XHTML Elements Must be in Lowercase HTML vs. XHTML
Why XHTML Attribute Names Must be in Lowercase HTML vs. XHTML
Why XHTML Attribute Values Must be Quoted HTML vs. XHTML
Why XHTML Attribute Minimization is Forbidden HTML vs. XHTML
How to Validate HTML With The W3C Validator HTML vs. XHTML


Category:
Web Tutorial
Sub Category:
HTML vs. XHTML
Uploaded by:
Admin


Reffered: https://www.w3schools.com/html/html_xhtml.asp