"One smell of the day" the difference between HTML and XHTML-------HTML and XHTML

Source: Internet
Author: User

Extensible Hypertext Markup Language XHTML (extensible Hypertext Markup Language), the first revision of HTML 4.01, is the "3 HTML4 files reorganized according to the XML1.0 standard". In other words, XHTML is a hybrid of HTML 4.01 and XML1.0.
Since XHTML1.0 is based on HTML4.01 and does not introduce any new tags or attributes (xhtml can be thought of as a subset of HTML), it behaves like Hypertext Markup Language HTML, but is syntactically stricter, and almost all Web browsers, while parsing HTML correctly, can be XHTML compatible.
For example: All tags in xhtml must be lowercase, all tags must be closed, and each attribute must be enclosed in quotation marks. <br> to be written <br/>, cannot be written as <br/> (with HR); After using <p>, you must have a </p> to end the paragraph.

"One smell of the day" the difference between HTML and XHTML-------HTML and XHTML

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.