We often see these three things on a technical website or BBS: XHTML DHTML SHTML. What exactly are they doing? Let’s look at the instructions and explanations below.
XHTML:HTML is a basic WEB web design language. XHTML is an XML-based markup language. It looks somewhat similar to HTML, with only some small but important differences. XHTML is an XML that plays a role similar to HTML. Therefore, essentially, XHTML is a transition technology that combines the powerful functions of XML (some of them) and the simple features of HTML (mostly).
At the end of 2000, the International W3C (World Wide Web Consortium) organization announced the release of XHTML version 1.0. XHTML 1.0 is a new language optimized and improved based on HTML 4.0, with the purpose of being based on XML applications. XHTML is an enhanced HTML, and its scalability and flexibility will adapt to the needs of future network applications. Below are common basic questions about XHTML answered by Steven Pemberton, chairman of the W3C's HTML Working Group.
(1) XHTML solves the problems that seriously restrict its development in the HTML language. There are three main disadvantages of HTML development today: it cannot adapt to the needs of more network devices and applications now, such as mobile phones, PDAs, and information appliances, which cannot directly display HTML; because the HTML code is not standardized and bloated, the browser needs to be smart and huge enough to display HTML correctly; the data and performance are mixed, so that if your page changes its display, you must re-create HTML. Therefore, HTML needs to develop to solve this problem, so W3C formulated XHTML, which is a bridge from HTML to XML.
(2) XML is the trend of web development, so people are eager to join the XML trend. XHTML is the current standard to replace HTML4 markup language. Using XHTML 1.0, as long as you carefully abide by some simple rules, you can design pages that are suitable for both the XML system and most current HTML browsers. This means that you can design XML immediately without waiting until people use XML-enabled browsers. This guideline allows a smooth transition to XML for the web.
(3) Another advantage of using XHTML is that it is very strict. The current bad situation of HTML on the Internet is shocking. Early browsers accepted private HTML tags, so people had to use various browsers to detect the page after the page design was completed to see if it was compatible. There are often many inexplicable differences, and people had to modify the design to adapt to different browsers.
(4) XHTML can interact well with other XML-based markup languages, applications and protocols.
(5) XHTML is part of the Web Standards family and can be used in other user agents such as wireless devices.
(6) In terms of website design, XHTML can help you get rid of the bad habit of presenting code and help you develop the habit of mark-proofing to test page work.
DHTML:DHTML is just a concept of making web pages. In fact, no organization or organization has introduced so-called DHTML standards or technical specifications. DHTML is not a technology, standard or specification. DHTML is just a design concept that integrates and applies existing web page technology and language standards to create a web page that can still change the effects of page elements in real time after downloading.
DHTML roughly contains the following web technologies, standards or specifications:
Sample code [www.CuoXIn.com]