Friday, March 5, 2010

XHTML vs HTML

HTML Versus XHTML

What should we use HTML or XHTML & why?

For the best conversion services………
Html starts with html 3.2 replaced by html 4.0 then followed by HTML4.01 which is the latest versions of HTML also the final W3Cspecification to define the semantic of markup. Indeed the language has improved in HTML 4.01 than it was in HTML 3.2 focusing on these issues.

Separation of presentation from structure

Improved accessibility features

Improve internationalization features

Improved document rendering


What does semantic actually mean?

Semantic is the word used to refer to the meaning of a given tag or coding. Here the major difference is that the semantic for HTML 4.01 & for XHTML 1.0 is same.Though this syntax looks same but there are some minute differences between them. Both the languages exist in 3 flavors: frameset, Translational and strict.

Switching from html 4.01 to Xhtml 1.0 does shows great difference for the visitors but has a quiet more difference if taken through the aspects of the experts.

Some of them are.

XHTML is easier to maintain

XML syntax rules are far more rigorous than HTML. As a result, XHTML makes authors work more precisely, having to address issues such as:

All elements and attribute names must appear in lower case

All attribute values must be quoted

Non-Empty Elements require a closing tag

Empty elements are terminated using a space and a trailing slash

No attribute minimization is allowed

In strict XHTML, all inline elements must be contained in a block element

All together in html case margin for error are wider than that which are available in XHTML. The rules in XHTML are very precise & clear. As a result, XHTML is easier to author and to maintain, since the structure is more apparent and problem syntax is easier to spot.

Xhtml is XSL ready:

As it is a clear picture that XHTML 1.0 is a reformulation of HTML 4.01 in XML hence XHTML documents are combination of both hypertext documents & XML documents. A powerful technology has been developed at W3C to manipulate and transform XML documents: the Extensible Style sheet Language Transformations (XSLT). This technology is tremendously useful to create various new resources automatically from an XHTML document. For example

You can create a table of contents for a long document

Get a quick overview of a page by listing its languages and structural outlines!

You can provide a printable version of your documents by using the XSL-FO features of XSL

You can produce an RSS feed directly from your page.

XHTML is easier to learn & teach.

The syntax rules & regulations that are been derived for XHTML are more precise as they are based on XML are more clear than that are been provided for the HTML through SGML rules which are used in HTML.

XHTML is ready for future.
The time when Xhtml becomes a recommendation and is ready for all conversion services that a designer provides, XHTML 1.0documents will be easily upgradable to this new version, & to take advantages of new features it’s likely that an XSLT style sheet will be available to make XHTML (strict) documents to XHTML 2.0.