The distinction between htm,html,xhtml,xml,xsl,dhtml,shtm and shtml

Source: Internet
Author: User
Tags xsl

Introduce the distinction of htm,html,xhtml,xml,shtml, the following content from Baidu after the knowledge collation.

HTML and HTM:

HTML (Hypertext Markup Language) Hypertext Transfer Language, is the description language of www, a + descriptive text composed of HTML commands, the page does not have the language of the server execution. And the HTM, in fact, and HTML does not have the essential difference, just to meet the DOS only recognize 8+3 (file name is not more than 8 characters, the extension is not more than 3 characters) only, because some old system does not recognize the four-bit file name, So some Web servers require that the last letter of index.html L cannot be omitted. MSIE can automatically identify and open these files, but the page address must be written in full correspondence, that is, index.html and index.htm are two different files, corresponding to different addresses (Unix system is case sensitive, Therefore, if it does not match, it may report no files or find files.

Xml,xsl and XHTML:

XHTML (the extenaible hypertext Markup Language) Extensible Hypertext Markup Language abbreviation; XML (extensive Markup Language) Extensible Markup Language. 

XML is designed to transfer and store data, rather than display data, is a complement to HTML, the document and data can be structured so as to be able to exchange between departments, customers and suppliers to achieve dynamic content generation;

XML is powerful in transforming data, just facing tens of millions of existing sites, the direct adoption of XML is not appropriate, so there is XHTML, The latter is based on HTML4.0, with XML rules to expand it, get XHTML, you can think of XHTML is HTML to XML transition, XHTML syntax requirements more rigorous. and XHTML and CSS after the combination of both to achieve the separation of style and content, but also an organic combination of Web page code, in another separate file, you can also mix a variety of XML applications (SVG, etc.).

XSL is used to specify the document-style language of XML, which enables the Web browser to change the presentation of the original document. For example, changing the display order of data, no longer interacting with the server, through the transformation of the style sheet, the same document can be displayed larger, or collapsed only to show the outside layer. XSL, with its own extensibility, can control an infinite number of tokens, and the way to control them is endless, which gives the Web advanced layout features such as text rotation, multiple columns, and independent regions. also supports international writing formats, which can be mixed on a single page using left-to-right, right-to-left, top-to-bottom writing. The XSL standard is between the document-style semantics and the canonical language of CSS and Sgmi.

Dhtml:

  DHTML Dynamic HTML, a Web page concept relative to traditional static HTML (a concept rather than a technology), is not a language, but an integration of HTML,CSS and client script, a Web technology that is now available, The standard integration of language, the production of the download can still be real-time changes in the page elements of the Web technology concept.

DHTML is that when a webpage is downloaded from a Web service, it does not need to be processed by the server, and the Web page content, version style, animation and so on are dynamically updated in the browser, so that the Web designer can create a page that can interact with the user and contain dynamic content.

The difference between shtml and HTML:

SHTML: contains HTML text with embedded server-side commands, which are fully read, parsed, and modified by the server before being routed to the server side of the shtml document.

You can use the SSI directive in the sHTML file to refer to other HTML files, the file that the server sends to the client is explained sHTML, there is no SSI instruction, it realizes the function that HTML does not have, namely realizes the dynamic shtml.

sHTML is a file of SSI technology, that is, the server Side Include--ssi servers containing instructions, if the Web server has SSI capabilities (especially Unix-based platform Web servers and Netscape Enterprise Server and other support SSI command) will be special hosting of shtml file, first scan the shtml file to see if there is a special SSI directive, if there is to follow the Web server setting rules to interpret SSI instructions, after the interpretation of the general HTML with the client.

sHTML uses SSI's file extension, which is often referred to as "server embedding" or "Server containment", and is a server-based Web authoring technology similar to ASP.

How SSI works: Before you send content to a browser, you can use the server include side directive to include text, graphics, or application information in a Web page, such as: You can use SSI to include time, date stamps, copyright notices, or for clients to fill out and return forms, for repeated occurrences of text or graphics in multiple files, Using include files is an easy way to save content in an include file. Instead of having to enter all the content into all files. The include file can be called with a very simple statement that instructs the Web server to insert the content into the appropriate Web page, and all changes to the content can be done in only one place when the containing file is used.

Because the file containing the SSI Directive requires special handling, the file extension must be given to all SSI files, by default,. stm,.shtm and. shtml.

The Web server processes the Web page while processing the SSI instruction, when the Web server encounters the SSI directive, inserts the contents of the containing file directly into the HTML Web page, and inserts the file if the containing file contains the SSI directive. In addition to the basic instructions for including files, you can also use SSI directives to insert information about a file or to run an application or shell command.

Site maintenance is often encountered when the structure of the site is fixed, but in order to update the content has to do a large number of pages, and SSI provides a simple and effective way, it puts a basic structure of a Web site in a few simple HTML files (templates), all we have to do is to upload text to the server, Let the program automatically generate pages according to templates, making it a little easier to manage large sites.

So the use of shtml format of the page and ASP almost, but because the API so faster, more efficient than ASP, and slower than HTML, but because the use of server-side inclusion, so the page update easy (especially batch update banner, copyright, etc.).

HTML or HTM is a static page format, there is no server-side script execution, so the server does not need to parse the script, and shtml based on SSI technology, when there is a server-side executable script as a dynamic programming language (such as php,jsp,asp) to see When shtml or shtm does not contain the server-side executable script, it is the same as HTML or HTM.

The above is just a simple introduction, more detailed reference Baidu Encyclopedia of the various introduction.

  

The distinction between htm,html,xhtml,xml,xsl,dhtml,shtm and shtml

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.