Differences between html, xhtml, and xml _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
Html: hypertext markup language; xhtml: extensible hypertext markup language; xml: extensible markup language. For more information, see the development trend of this article:

Html (Hypertext Markup Language)-xhtml (Extensible Hypertext Markup Language)-xml (Extensible Markup Language );

Html:

1. Not case sensitive;

2. tags do not need to appear in pairs;

3.
;

Xhtml:

1. It is case sensitive and must be lower-case;

2. tags must appear in pairs. If a start tag exists, the end tag must exist;

3. attribute values must be enclosed in quotation marks;

4. Attribute minimization is not supported:

Eg: Correct:

Error:

5. The name attribute is not in favor of use and will be phased out in the future;

6. Empty elements also need to end tags: for example:
, (Horizontal split line)

Xml:

Html will eventually develop into xml. xhtml is a transition for html to develop xml, and the features of xhtml are also suitable for xml;

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.