Log in / create account | Login with OpenID
DocForge
An Open Wiki For Software Developers

HTML/head

From DocForge

The head element of an HTML document declares meta data for the document. This information is typically not displayed directly on a web page, but instead can provide a title, formatting, copyright, keywords, and any other relevant data.

The head element is typically the first element within the root html element of a document.

Example [edit]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>First Page</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="/screen.css" rel="stylesheet" type="text/css" />
</head>
<body>
...

Child Elements [edit]