HTML has been the most successful publishing language for web pages since the beginning of the World Wide Web (WWW). HTML 4.01 is the last W3C recommended version after 2.0 and 3.2. It supports the tags in the earlier versions and has got additional support for more multimedia, scripting languages, style sheets, better printing facilities and accessibility. Apart from all the goods with HTML, it has been treated as a 'let go' language by both developers and browsers. The 'loose' nature of HTML markup has resulted in ill-formed documents, still displayed properly in some browsers.
A need for a well-formed, flexible and more suitable language for large-scale electronic publishing gave birth to XML (Extendible Markup Language). XML is a simpler but much more flexible markup language, which provides you with the ability to exchange data in a variety of formats on the web.
With the development of better browsers and introduction of mobile phones and hand-held devices who do not have the resources or power to display a 'badly written markup' properly, a need arose for a language which combines the strengths of both HTML and XML.
XHTML was introduced as a result. XHTML is a stricter and cleaner version of HTML. XHTML is supposed to gradually replace HTML according to W3C. XHTML consists of all the elements used in HTML 4.01 combined with the syntax of XML.
To stay up to date with the latest web standards, enjoy the luxury of having your documents equally well-interpreted by electronic devices and produce nicely formed markup, it is time to upgrade your code to XHTML, the markup language of today and the future.
Migrating from HTML to XHTML is much easier than one might think. Because of the fact that it is actually based on HTML 4.01, XHTML is almost similar to HTML with a few enhancements.
The purpose of this article is to highlight the changes that you need to make to your markup while migrating from HTML to XHTML. Below is the list of changes that need to be made to an existing HTML document in order to make it XHTML compliant:
A typical xhtml document should look like this:
<!DOCTYPE Doctype goes here> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Title goes here</title> </head> <body> Body text goes here </body> </html>
http://www.w3schools.com/xhtml/xhtml_intro.asp
http://www.w3.org/MarkUp/2004/xhtml-faq
A good attempt to define HTML with XML. but this article does not show relation between XML and HTML. anyhow a good attempt to define XHTML.
Posted by : Faisal on 2006-03-02 12:22:07
For vertically aligning text in the middle of an HTML element using CSS, use the line-height property setting it equal to the height of the element. ( Posted by Guest )
Post A Comment