banner
Welcome to HTML.co.uk, the number one resource for all news, information, and happenings regarding HTML.

Updates: HTML.co.uk has just been relaunched. Subscribe to our RSS Feed to stay on top of HTML news and techniques.
Nov
13th

Understanding XHTML: A Basic and Simple Guide

Author: Editor | Files under HTML Tutorials
Tags for this article: , ,

The XHTML stands for Extensible HyperText Mark-up Language. XHTML is considered as a stricter and a cleaner version of HTML. XHTML is in the family of the XML mark up language. Prior to HTML 5 it was defined as SGML or standard generalised mark up language but XHTML is actually an application of XML or we can say a very restrictive subset of the earlier SGML. The XHTML has become had became World Wide Web consortium. The XHTML is actually a reformulation of three HTML 4 document type. It is believed that XHTML is the next step in the evolution of the internet. Hence we can say that XHTML has amazing future and backward compatibility.

Some people believe that XHTML is not as useful as it is said to be but it proves to be one of the most reliable product in the future. XHTML is somewhere related to HTML and this can be proved by the following points:

  • In HTML there are some tags which always remain empty and do not have a closing tag either. On the other hand in XHTML each and every element must be closed.
  • The XTML has some similarity with HTML which permits omitting the end tags for various elements.
  • In HTML each and everything is case insensitive whereas in XML every element and attributes are case sensitive. Well XHTML requires all the elements to be in lower case.
  • Some versions of HTML do permit quotes to be omitted from the actual attribute values. Whereas in XHTML all the attribute values should be enclosed by quotes it can be single or double.
  • HTML does permit attribute minimisation options in which a Boolean attributes can actually have their value entirely omitted.
  • Certain required elements can be omitted in HTML in which they are added by a parser. Whereas in XHTML the DOM must be determined without even knowing what all elements are actually required hence these tags should be specified properly.

XHTML is actually identical to HTML 4.01 which makes it even more user friendly. All browsers in the world support XHTML which is the biggest benefit of it. As it is so compatible hence it is used by a number of content management systems all over the world. It is very easy and interesting to learn how to publish XHTML 1.0 type of documents in the HTML compatible manner. Such sought of HTML compatible media content is actually sent using the HTML media types. Mostly all web browsers support the XHTML media types but the Internet Explorer of Microsoft does not support it.

The Internet Explorer does not render the file but actually a dialogue box opens which invites the user to save the content. The very latest versions of Internet Explorer show this tendency. The XHTML is not used preferred by everyone but it will be in great use in the coming future. XHTML is still evolving and will be very effective in the coming future. Learning and understanding XHTML is very easy and you can easily get all the information on the internet.