Posts

Showing posts from November 16, 2008

DTD - The Document Type Declaration

A DTD is a Document Type Definition, also know as DOCTYPE. In a document served as text/html, the DOCTYPE informs the browswer how to interpret the content of the page . If the the doctype is not declared, the browser assumes you don’t know how to code, and goes into " quirks mode ". If you know what you are doing and include a correct XHTML DOCTYPE, your page will be rendered in " standards mode ". A DTD is a Document Type Definition, also know as DOCTYPE. In a document served as text/html, the DOCTYPE informs the browswer how to interpret the content of the page . If the the doctype is not declared, the browser assumes you don’t know how to code, and goes into " quirks mode ". If you know what you are doing and include a correct XHTML DOCTYPE, your page will be rendered in " standards mode ". All of the above declarations will inform the browser to render the browser in standards mode. When authoring document is HTML or XHTML, it is important...

Fix Your Site With the Right DOCTYPE!

by JEFFREY ZELDMAN You’ve done all the right stuff, but your site doesn’t look or work as it should in the latest browsers. You’ve written valid XHTML and CSS. You’ve used the W3C standard Document Object Model (DOM) to manipulate dynamic page elements. Yet, in browsers designed to support these very standards, your site is failing. A faulty DOCTYPE is likely to blame. This little article will provide you with DOCTYPEs that work, and explain the practical, real–world effect of these seemingly abstract tags. by JEFFREY ZELDMAN You’ve done all the right stuff, but your site doesn’t look or work as it should in the latest browsers. You’ve written valid XHTML and CSS. You’ve used the W3C standard Document Object Model (DOM) to manipulate dynamic page elements. Yet, in browsers designed to support these very standards, your site is failing. A faulty DOCTYPE is likely to blame. This little article will provide you with DOCTYPEs that work, and explain the practical, real–world effect of these...

Building a site with web standards

Why and How to use Web Standards? 1. What are web standards? “Web standards are intended to be a common base… a foundation for the world wide web so that browsers and other software understand the same basic vocabulary“. Eric Meyer Who sets the webstandards? The World Wide Web Consortium (W3C) and other standards bodies have established technologies for creating and interpreting web-based content. These ‘web standards’ are carefully designed to: deliver the greatest benefits to the greatest number of web users ensure the long-term viability of any web document simplify code and lower the cost of production deliver sites that are accessible to more people and more types of Internet devices continue to function correctly as traditional desktop browsers evolve, and as new Internet devices come to market 2. The web standards Structural Languages Extensible Hypertext Markup Language (XHTML) 1.0 XHTML 1.1 Extensible Markup Language (XML) 1.0 Presentation Languages Cascading Style Sheets (CSS...