What is the difference between HTML and XHTML

Just not the same as the difference between HTML and XHTML name, their main function and writing habits from the difference between the two major aspects
html compatibility with all major browsers relatively poor, especially ie browser, on a web page table is relatively high writing skills otherwise, it is prone to compatibility problems.
The process can be a good major xhtml browser compatibility issues, because the syntax XHML of more stringent, if the habit of writing html loose way to reach xhml may be some not used. XHTML combines the power of XML and most part of the simple nature of HTML.
WEB is a basic HTML web design language, XHTML is an XML-based markup language
in terms of writing:
1.XHTML elements must be properly nested.
2.XHTML elements must be closed. Label names must be lowercase.
3.XHTML documents must have a root element.
4.XHTML label must be in pairs
5.html is not strictly required for the tab order, XHTML tag sequence must correct
a word more standardized than html xhtml

Guess you like

Origin blog.csdn.net/xiaoHelloWord/article/details/94591568