The difference analysis of DHTML shtml XHTML _ Experience Exchange
Source: Internet
Author: User
Dhtml:
To be exact, DHTML is just a concept of making Web pages, and virtually no organization or institution has ever introduced so-called DHTML standards or technical specifications. DHTML is not a technology, standard, or specification, and DHTML is a design concept that uses existing Web technologies and language standards to create pages that can still transform page elements in real time after they are downloaded.
DHTML broadly includes the following Web page technologies, standards, or specifications:
HTML 4.0
There's nothing to say, basic language standards for Web pages.
Cssl
Attention! Not CSS, is Cssl, it is clent-side Scripting language abbreviation, translated "client-side scripting language", mainly JavaScript (JS), VBScript (VBS), JScript. Netscape mainly supports Js,ie primarily support js,vbs and JScript.
Dom
The abbreviation for the Document Object model, translated as "the" documents ", is one of the most widely used web technology standards, which abstracts the content of the Web page into objects, each with its own properties, methods, and events ( Events), which can be controlled by the Cssl mentioned above. The object models of IE and NS are based on the published Dom of the extended, plus their own objects (extension objects) to generate.
Css
This is the abbreviation for cascading style Sheets (cascading style sheets), which is also the most discussed technical specification in the Forum, which is an auxiliary design specification for HTML, which is a part of the DOM that makes up for the lack of HTML restrictions on typography. In theory, changing CSS properties dynamically through CSSL can make any desired page visual effect.
So, simply put, to achieve DHTML, is based on HTML, using the DOM to the page elements of the object, using Cssl to control the CSS properties of these objects to achieve the dynamic visual effect of the Web page.
sHTML
Ask the difference between SHTML and HTML, if in a word to explain is: SHTML is not HTML but a server api,shtml is the server dynamically produced HTML.
Although both are hypertext formats, shtml is a file for SSI technology. That is, the server Side Include--ssi contains instructions. If the Web server has SSI capabilities (most (especially UNIX-based platforms), Web servers such as Netscape Enterprise Server support SSI commands).
The shtml file will be specially entertained. Sweep the shtml file first to see no special SSI instructions now.
The SSI directive is interpreted according to the Web server setting rules. After the explanation, with the general HTML dropped to the client.
sHTML
Using an SSI (server Side include) HTML file extension, SSI (server Side include), commonly referred to as "server-side embedding" or "server-side containment", is a server-based Web authoring technology similar to ASP.
How SSI works:
Before you send content to your browser, you can use the server-side include (SSI) directive to include text, graphics, or application information in a Web page. For example, you can use SSI to include a time/date stamp, a copyright notice, or a form for customers to fill out and return. For text or graphics that appear repeatedly in multiple files, it is an easy way to use include files. Save the content in one of the included files without having to enter the content into all the files. The include file is called with a very simple statement that instructs the WEB server to insert the content into the appropriate Web page. Also, when you use the Include file, all changes to the content can be done in one place only.
Because files containing SSI directives require special processing, SSI file extensions must be assigned to all SSI files. The default extension is. stm,. shtm, and. shtml
The Web server processes the SSI instructions while processing the Web page. When the Web server encounters an SSI directive, the contents of the containing file are inserted directly into the HTML page. If the include file contains an SSI directive, the file is inserted at the same time. In addition to the basic instructions for including files, you can use SSI directives to insert information about a file, such as the size of a file, or to run an application or shell command.
Web site maintenance often encountered a problem is that the structure of the site has been fixed, but in order to update a little content and have to redo a large number of pages. SSI provides a simple and efficient way to solve this problem by placing the basic structure of a Web site in a few simple HTML files (templates), and then all we have to do is upload the text to the server and let the program automatically generate the page according to the template, making it easy to manage large sites.
Therefore, the use of shtml format for the purpose of the page and ASP, but because it is the API so faster, more efficient, faster than ASP, more than HTML, but because the server side can be used to include, so that the page update easy (especially batch update banner, copyright, etc.), imagine it, You have a piece of HTML, to be interspersed in the middle of some special server script, such as inserting other HTML paragraph, you choose ASP to complete this task, but if the task is more onerous, need more time, such as 5 s, this time you do not use ASP and SHTML, perhaps processing time only with 4 S.
Xhtml:
HTML is a basic Web page design language, XHTML is an XML-based labeling language, looks like HTML, there are some small but important differences, XHTML is an HTML-like role in the XML, so, essentially speaking, XHTML is a transition technique that combines the power of XML (somewhat) with the simple nature of HTML (most).
By the end of 2000, the World Wide Web Consortium organization published the release of XHTML version 1.0. XHTML 1.0 is a new language optimized and improved on the basis of HTML 4.0, designed to be based on XML applications. XHTML is an enhanced HTML that is scalable and flexible to meet the needs of future Web applications. Here are the common basic questions about XHTML, answered by Steven Pemberton, chairman of the HTML Working Group.
(1) XHTML solves the problem that the HTML language has the serious restriction to its development. HTML development Today there are three main shortcomings: can not adapt to the current more network equipment and application needs, such as mobile phones, PDAs, information appliances can not directly display HTML, because the HTML code is not standardized, bloated, the browser needs to be intelligent and large enough to display HTML correctly; So that your page changes display, you have to re-create the HTML. So HTML needs development to solve this problem, so the xhtml,xhtml is a bridge to HTML over XML.
(2) XML is the trend of web development, so people are eager to join the trend of XML. XHTML is currently an alternative to the HTML4 markup language, and with XHTML 1.0, you can design a page that fits both the XML system and most of the current HTML browser, as long as you follow some simple rules carefully. This means that you can design and use XML immediately, rather than waiting for people to use XML-enabled browsers. This guideline can make the Web smooth transition to XML.
(3) Another advantage of using XHTML is that it is very tight. The worst-case scenario for HTML on the Web is shocking, with early browsers accepting private HTML tags, so people have to use a variety of browsers to detect pages after the page has been designed, to see if they are compatible, often with many inexplicable differences, and people have to modify the design to accommodate different browsers.
(4) XHTML is able to interact well with other XML-based markup languages, applications, and protocols.
(5) XHTML is part of the Web Standard family and can be good at other user agents such as wireless devices.
(6) In terms of website design, XHTML can help you get rid of the bad habits of the presentation layer code, helping you develop the habit of tagging to test the work of the page.
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.