XHTML is an Extensible Hypertext Markup Language, it is a standard create by a combination of XML and HTML. XHTML is intended to replace HTML it has a stricter syntax and is an official W3C recommmendation. It is required to standardise web standars as some browsers support proprietary tags such as "blink" and "marquee" that are only supported on some browsers but not on others. XHTML can be extended by adding new tags, the existing tags remaining unchanged, thus it is backward compatible. A poor standard of HTML documents led to the creation of browsers that are extremely lenient with regard to the code that they will accept, this has led to alot more sloppy code being created; this major problem needs to be addressed as it increases the resources and the development effort of browsers to handle all these exceptions.
Differences between HTML and XHTML.
There are several differences between HTML and XHTML, XHTML is forward compatible, it will not have depreceted tags, on the other hand HTML is not and tags supported change from version to version, with some tags being included and others being removed. XHTML alleviates the need for browser "hacks" whereas HTML it was common place to have different bits of code for different browsers to maker them work at all.
Difference in Tags:
All XHTML tags including standalone tags must have a closing tag, this is achived in stand alone tags by adding a / to the end of the tag, i.e.
All tags in XHTML are lowercase, whereas in HTML they could be either and both.
1 comment:
V. Good answer
Post a Comment