Html/htm,shtml/shtm,xml,xhtml

Source: Internet
Author: User

Html/htm

The English full name is Hyper Text Markup Languge, the Chinese full name is Hypertext Markup Language, is a standard universal markup language under an application, a specification, a standard, it marks the page to be displayed by marking the various parts. The HTML structure consists of two parts of Head,body, where the header describes the information required by the browser, and the body contains the specific content to be displayed on the page. Since its release, HTML has undergone 5 revisions.

Features:

1, Simplicity: The HTML version of the upgrade using the super-set method, thus more flexible and convenient;

2, Extensibility: The wide application of HTML brings the enhancement function, the addition of identifiers and other requirements, the way HTML takes sub-class elements, to ensure the system expansion;

3, platform-Independent: HTML can be used in Windows, Mac and other broad platform, which is another reason for the popularity of the World Wide Web;

4, Universality: HTML is the universal language of the network, a simple, universal, all-in-one markup language. It allows web page producers to create complex pages that combine text with images that can be browsed by anyone on the web, without the limitations of the system or browser.

HTML and HTM:

In fact, there is no essential difference between HTML and HTM, it means the same file, only applicable to different environments, but also to meet the DOS can only recognize the 8.3 version of the file name, because some old system does not recognize the four-bit suffix name.

It is also worth mentioning that the UNIX system is sensitive to case, does not match the words may be error, such as no files or files can not be found. Also, in this system, the Web page must use the. html extension, and if it is an. htm, the source code appears when opened in the browser, but two extensions are supported in Windows. It can also be said that HTML and HTM are the products of Windows and Unix confrontation.

(The relationship between sHTML and shtm is similar to that of HTML and HTM.) )

Shtml/shtm

sHTML is a file that is based on SSI technology, which is the server Side include servers-side include directives. Some Web server if there is SSI function, will be the shtml file special treatment, the server will first see if the shtml file has SSI instructions exist, if any, in accordance with the Web server set rules to interpret SSI instructions, after the interpretation of the HTML with the client.

sHTML can use include (including HTML) to generate static pages through the server; shtml pages can be embedded in additional HTML pages using include, which allows a site to be shared in the same way, using include to embed in static pages. Static pages are not.

If a Web site head and navigation, the bottom of the various pages are exactly the same, you can separate the sections are placed in an HTML page, and then use the include embedded in a shtml page. Specifically, HTML and HTM cannot use include, even if it is not used. In order for the server to resolve shtml, SSI must be turned on in server IIS.

sHTML and ASP have some similar, in shtml named file, use some SSI's instructions, like the instructions in ASP, you can write SSI instruction in shtml file, when the client accesses these shtml files, the server side will read and interpret these shtml files, Interpret the SSI instructions contained in the sHTML file.

For example: You can use the SSI directive in the sHTML file to refer to other HTML files (#include), the server sent to the client file, is already explained that shtml will not have SSI instructions. It realizes the function that HTML does not have, can realize the dynamic shtml, can say is an evolution of HTML. Like the news system, the news content is fixed, but the ads and menus above it are quoted in # include.

Xml

The English full name is extensible Markup Language, the Chinese full name is Extensible Markup Language, which, like HTML, is SGML (Standard generalized Markup Language, standardized universal Markup language). XML is a cross-platform, content-dependent technology in an Internet environment, and is a powerful tool for the current processing of structured document information. Extensible Markup Language XML is a simple data storage language that uses a series of simple tags to describe data that can be built in a convenient way, although XML occupies more space than binary data, but XML is extremely simple and easy to master and use.

Unlike databases such as access,oracle and SQL Server, the database provides more powerful data storage and analysis capabilities, such as data indexing, sorting, lookups, correlation consistency, and so on, where XML is just the presentation of data. In fact, the biggest difference between XML and other data representations is that he is extremely simple. This is a seemingly trivial advantage, but it is this that makes XML different.

The difference between XML and HTML is that XML is used to store data in the data itself. While HTML is used to define data, the display mode of the data is heavy.

The simplicity of XML makes it easy to read and write data in any application, which makes XML quickly the only common language for data exchange, although different applications support other data interchange formats, but soon they will support XML, which means that programs can be easier with Windows, Mac OS, Linux and other platforms generated by the combination of information, and then can easily load XML data into the program and analyze him, and output the results in XML format.

Xhtml

The English full name is extensible Hyper Text Markup Language, the Chinese full name is extensible Hypertext Markup Language, is a markup language, the expression is similar to Hypertext Tag language (HTML), but more strict syntax. In terms of inheritance, HTML is an application based on standard universal Markup Language, which is a very flexible set-up language, while XHTML is based on extensible tag language, extensible Markup Language is a subset of the standard universal labeling language. In essence, XHTML is a transition technology that combines the power of some XML with the simple nature of most HTML.

Characteristics:

XHTML is a markup language that does not need to be compiled and can be executed directly by the browser; XHTML is an enhanced HTML, its extensibility and flexibility will adapt to the needs of future Web applications; XHTML is an XML-based application; XHTML is more concise and rigorous. XHTML is case sensitive, XHTML is not the same as XHTML, and standard XHTML tags should use lowercase.

The list shows the difference:

Xhtml:

1, the requirements of the correct nesting;

2, all elements must be closed;

3, case-sensitive;

4, the attribute value to use double quotation marks;

5, replace the name attribute with the ID;

6, special character processing is different;

7. XHTML can be said to be an XML version of HTML, but syntax is more rigorous than HTML.

In addition, XHTML is basically the same as HTML.

Html/htm,shtml/shtm,xml,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.