What is the difference between XHTML and HTML? This issue may be often seen in our daily study or work. I hope that you can give you a deep harvest through this issue. Below is the reference content brought by Xiaobian, let’s take a look!
In general, HTML is a hypertext markup language, and XHTML is an extensible hypertext tag language, a marking language, a performance method similar to hypertext tag language (HTML), but grammar More stringent.From inheritance relationship, HTML is a very flexible marking language based on the application of standard general set language, and XHTML is based on scalable markup language. Scalable markup language is standard A subset of the general set language language. That is to say that XHTML is a subset of HTML.
Let’s summarize their main differences:
1. Document type declaration mode
Third, the details are distinguished
XHTML can be considered to be an XML version of HTML, In line with XML requirements, the XHTML syntax requires more rigorous.
XHTML requires correct nested, allElements must be closed, case sensitive, attribute values to use dual quotes, replace Name properties, special characters with ID attributes.
Thank you for reading! After reading the above, do you have any difference between XHTML usage and HTML? I hope that the content of the article will help everyone. If you want to know more about the content, please pay attention to Tumi Yun Industry Information Channel.