Latest News

16-July-2008
New design concept for vishwebdesign.com Well, yeah..I'm thinking of either modifying the existing template or create a new design for vishwebdesign. I'm short of ideas these days. I'm also thinking of mixing things up, using some new technologies, implementing mootools or yui maybe. I'll give it some time..
Vishal Beersye

xhtml doctypes

A DOCTYPE (also called a DTD) is short for "document type declaration." Browser uses that information to properly to display the page elements and attributes in your code.

  • For XHTML strict: (Use this doctype when you're not using any deprecated or frameset tags with XHTML.)
  • <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  • For XHTML transitional: (Use this doctype if your document is in XHTML and contains deprecated tags.)
  • <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

More about Doctypes

  • Per HTML and XHTML standards, a DOCTYPE (short for “document type declaration”) informs the validator which version of (X)HTML you’re using, and must appear at the very top of every web page. DOCTYPEs are a key component of compliant web pages: your markup and CSS won’t validate without them.
  • Using an incomplete or outdated DOCTYPE—or no DOCTYPE at all—throws these same browsers into “Quirks” mode, where the browser assumes you’ve written old-fashioned, invalid markup and code per the depressing industry norms of the late 1990s.

An incorrect or incomplete one can break your page display in some browsers.

Useful CSS & XHTML Articles and Links