A Document Type Definition (DTD) is a set of rules that define the document structure in a particular version of XML or (X)HTML. A browser will parse the web page looking for the Document Type (DOCTYPE) Declaration in your CSS code and will use these rules to validate the page.

An example of Document Type (DOCTYPE) Declaration is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

The DOCTYPE declaration is included at the start of the (X)HTML document. It is required in order for the page to validate as the browser needs to know which DTD to use in order to process the page correctly.

In the previous example the DTD XHTML 1.0 Transitional is used.

(more…)

  • Digg
  • Facebook
  • MySpace
  • Twitter
  • Technorati Favorites
  • Evernote
  • Delicious
  • Share/Bookmark
Tagged with: browserCSSdoctypeDTDhtmltutorialvalidatorw3cxml
 

CSS Simple Layouts.

Ok. Before we start.. what is CSS?

Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in a markup language as for example HTML, HTML or even XML. The CSS specifications are maintained by the World Wide Web Consortium (W3C).

The aim of CSS is then to position the content of a web page. CSS is used by the author (and even the readers!) of websites to define colors, fonts, layout, and other aspects of the presentation of a document.

CSS layouts

(more…)

  • Digg
  • Facebook
  • MySpace
  • Twitter
  • Technorati Favorites
  • Evernote
  • Delicious
  • Share/Bookmark
Tagged with: CSSdownloadhtmllayouttutorialw3cWebxml