Latest News

31-dec-2008
Happy New Year 2009
Wishing you all people around the world a very happy new year 2009.
Vishal Beersye

Different xhtml versions

XHTML 1.0 is the first document type in the XHTML family. It is a reformulation of the three HTML 4 document types as applications of XML 1.0 [XML]. It is intended to be used as a language for content that is both XML-conforming and, if some simple guidelines are followed, operates in HTML 4 conforming user agents. Developers who migrate their content to XHTML 1.0 will realize the following benefits:

  • XHTML is said to be more strict than html.
  • The 3 types : XHTML 1.0 transitional, XHTML 1.0 STRICT, XHTML 1.0 FRAMESET.

For our case, I’ll discuss only about the transitional and strict versions, they’re the most popular ones.

xhtml strict and transitional

Following transitional elements were removed from the Strict XHTML:

  • applet, basefont, center, dir, font, iframe, isindex, menu, noframes, s, strike, u.

Following are some attributes were removed from the Strict XHTML:

  • Attribute alink is forbidden on body.
  • Attribute background is forbidden on body.
  • Attribute bgcolor is forbidden on body, table, td, th, tr.
  • Attribute border is forbidden on img, object, it can be used on table.
  • Attribute clear is forbidden on br.
  • Attribute language is forbidden on script.
  • Attribute link is forbidden on body.
  • Attribute name is forbidden on form, img, it can be used on a, button, input, map, meta, object, param, select, textarea.
Useful CSS & XHTML Articles and Links