XHTM Code
Welcome to XHTMLcode.co.uk, information and tips on XHTML 1.0 and XHTML 1.1!
Introduction to XHTML
XHTML stands for Extensible Hypertext Mark-up Language and is a hybrid of HTML (Hypertext Mark-up Language) and XML (Extensible Markup Language). XHTML is designed to remain constant acrss different platforms and is far stricter than HTML.
Versions
XHTML 1.0 is a reformation of HTML 4.01 to work with XML and is split into three DTDs (Document Type Definition):
XHTML 1.0 Strict
XHTML 1.0 Strict is basically the same as HTML 4.01 but it follows the XML syntax rules.
XHTML 1.0 Transitional
Transitional is the same as strict but is a little more forgiving, it allows some elements found in HTML that strict does not, for example the center element.
XHTML 1.0 Frameset
Frameset is the same asHTML 4.01 Frameset, but, again, follows XML syntax rules.
XHTML 1.1
The latest recomendation from the W3C is basically an advancement of XHTML 1.0 Strict but with the remaining depreciated HTML elements and attributes left available in 1.0 Strict removed.
XHTML 2.0
XHTML 2.0 is currently under development but is set to be the next big language for web designers. It is a controversial development as it will break backward compatibility with some aspects of XHMTL and HTML.
The main conceptual difference for designers to understand is that all presentational aspects have been removed. This must now all be contained in the CSS (Cascading Style Sheets).
DOCTYPEs
XHTML 1.0 Strict
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
XHTML 1.0 Transitional
<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
XHTML 1.0 Frameset
<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
XHTML 1.1
<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
XHTML 2.0
<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml2.dtd">