Developer Forums | About Us | Site Map
Search  
HOME > TUTORIALS > CLIENT SIDE CODING > XML TUTORIALS > XHTML: THE POWER OF TWO LANGUAGES


Sponsors





Useful Lists

Web Host
site hosted by netplex

Online Manuals

XHTML: The power of two languages
By Sathyan Munirathinam - 2004-01-09 Page:  1 2 3 4 5 6 7

XHTML DTD

When an XHTML document is created, the DTD to which it conforms is declared at the top of the document. Each DTD may be recognized by a unique label called a Formal Public Identifier, or FPI. The literal, or quoted, text following the word PUBLIC is an FPI referring to the W3C's XHTML 1.0 DTD.

Currently, there are three XHTML document types:

  • Strict
  • Transitional
  • Frameset

Strict DTD


<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "DTD/xhtml1-strict.dtd">

Use this with CSS when you want really clean markup, free of presentational clutter. Several tags have been removed from the language (like <center>), and even some attributes of other tags have been removed too (like the align attribute of the H1 tag).

Transitional DTD


<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "DTD/xhtml1-transitional.dtd">

Use this when you need to take advantage of HTML's presentation features; many of your readers don't have the latest browsers that understand CSS. The transitional DTD supports most of the standard HTML 4 tags and attributes.

Frameset DTD


<! DOCTYPE html PUBLIC   "-//W3C//DTD XHTML 1.0 Frameset//EN"
    "DTD/xhtml1-frameset.dtd">

This enables you to use HTML frames to partition the browser window into two or more frames. This DTD holds the frameset definitions.



View XHTML: The power of two languages Discussion

Page:  1 2 3 4 5 6 7 Next Page: XHTML validation rules

First published by IBM developerWorks


Copyright 2004-2024 GrindingGears.com. All rights reserved.
Article copyright and all rights retained by the author.