Linggo, Hulyo 3, 2011

lesson

-Our lesson this week is all about HTML tags (hypertext markup language), html attributes, and XHTML (Extensible Hypertext Markup Language)

html attribute-Attributes provide additional information about HTML elements.
  • HTML elements can have attributes
  • Attributes provide additional information about an element
  • Attributes are always specified in the start tag
  • Attributes come in name/value pairs like: name="value"

  • XHTML-(Extensible Hypertext Markup Language) is a family of XML markup languages that mirror or extend versions of the widely used Hypertext Markup Language (HTML), the language in which web pages are written.

An XHTML document consists of three main parts:
  • the DOCTYPE declaration
  • the <head> section
  • the <body> section
The basic document structure is:
<!DOCTYPE ...>

<html>

<head>
<title>... </title>
</head>

<body> ... </body>

</html>
Note: The <!DOCTYPE> declaration refers to a Document Type Definition (DTD). A DTD specifies the rules for the markup language, so that the browsers render the content correctly.

XHTML 1.0 Strict

This DTD contains all HTML elements and attributes, but does NOT INCLUDE presentational or deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Walang komento:

Mag-post ng isang Komento