Monday, July 12, 2010

Definition of HTML, XHTML and CSS

HTML stands for HyperText Markup Language. It is a language that provides a semantic description (meaning) for the content of a document. It also specifies a structure for the document in the form of a hierarchy of elements.

Hypertext is text displayed on a computer or other electronic device with references (hyperlinks) to other text that the reader can immediately access, usually by a mouse click or keypress sequence. (Source: Wikipedia)

A markup language is a modern system for annotating a text in a way that is syntactically distinguishable from that text. (Source: Wikipedia)

XHTML stands for Extensible HyperText Markup Language. It is "a reformulation of the three HTML 4 document types as applications of XML 1.0". (Source: W3C)

XHTML provides the following benefits:

  • Extensiblity: The language allows for future growth
  • Interoperablity: XHTML documents can be transformed for constrained devices such as mobile phones
  • Namespaces: Fragments from other XML-based languages could be included by specifying the namespace using the xmlns attribute.
  • Modularization: HTML could be divided into reusable components.

CSS stands for Cascading Style Sheets.

CSS is a style sheet language used to describe the presentation semantics (the look and formatting) of HTML and XHTML pages. A style sheet language is a computer language used to describe the presentation of structured documents. (source: Wikipedia)

No comments: