+ 1
What is the difference between xhtml and html5?
I was just curious to know what the difference between them is. Aren't they the same thing?
2 ответов
+ 6
Hello, Siddh Shah !
XHTML is not so different from the HTML 4.01 standard. The main differences:
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.
Basically, XHTML is HTML (all html tags are in XHTML), which follows the rules of XML (because this is an XML family).
Additional references can be found at:
http://www.w3schools.com/html/html_xhtml.asp
http://en.wikipedia.org/wiki/XHTML
http://www.sitepoint.com/web-foundations/differences-html-xhtml/
0
thanks