XHTMLExtensible Hypertext Markup Language (XHTML) is a markup language that has the same expressive possibilites as HTML, but a stricter syntax. Whereas HTML was an application of SGML, a very flexible markup language, XHTML is an application of XML which is a subset of SGML. XHTML 1.0 became a World Wide Web Consortium (W3C) Recommendation on January 26, 2000. XHTML is the successor to and the current version of HTML. The need for a more strict version of HTML was felt primarily as now web content needs to be delivered to many other devices (like mobile devices) apart from traditional computers, where extra resources cannot be devoted to support the generosities of HTML (the looser the syntax of a language, the harder it is to process). The XHTML DTD is defined within the XML DTD to enforce the strict rules of XML. Most of the recent versions of popular web browsers render XHTML properly, and many older browsers will also render XHTML as it is mostly a subset of HTML and most browsers do not require valid HTML. Similarly, almost all web browsers that are compatible with XHTML also render HTML properly. Some say this is slowing the switch from HTML to XHTML. XHTML's true power is realized when used in conjunction with Cascading Style Sheets. This makes the separation of content and form an integral part of the web page's code. The changes from HTML, to transitional XHTML, are minor, and are mostly just in conformance with XML. The most important change is the requirement that all tagss are well-formed. Additionally, in XHTML, all elements must be lowercased. This is in direct contrast to established traditions which began around the time of HTML 2.0, when most people preferred uppercased tags. In XHTML, all attributes, even numerical ones, must be quoted. (This was mandatory in HTML as well, but often ignored.) All tags must also be closed, even the empty tags <img> and <br>. This can be done by adding a closing slash to the tag: <img /> and <br />. Attribute minimization (e.g., <option selected>) is also prohibited. More differences are detailed at the W3C XHTML specification. Wikipedia pages currently use valid XHTML 1.0 Transitional.Versions of XHTMLXHTML is HTML reformulated as XML. There are three different versions, equal in scope to their respective HTML4.0 versions.
External links\n*W3C's HTML Home Page\n*XHTML 1.0 Specification\n*XHTML 1.1 Specification\n*Working Draft of XHTML 2.0\n*W3C MarkUp Validation Service (Including XHTML validation)\n*XHTML validator on SourceForge\n*Wikibooks XHTML tutorial — in progress \n\n\n\n \n\n\n\n\n\n Category:W3C standards\nCategory:XML standards |
||
"Most people would sooner die than think; in fact, they do so." - Bertrand Russell (1872-1970) |
