asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > HEAD Element

<HEAD Element | HEAD Object


Contains header information about the HTML document.HTML 2, 3.2, 4, 4.01, 5

HTML Syntax

Remarks

The HEAD element defines an HTML document header, that contains information about the document that is of use to the Web browser and search indexing engines.

The browser displays none of the information in the header, except for text contained in the TITLE element.

All header information must be between the <head> and </head> tags, which should precede the BODY element.

The HEAD element can contain the following elements:

A <head> element’s start tag can be omitted if the element is empty, or if the first thing inside the <head> element is an element.

A <head> element”s end tag can be omitted if the <head> element is not immediately followed by whitespace or a comment.

Attributes

The <head> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

<html>
<head>
   <title>Sample HTML document</title>
</head>
<body>
   <p>Hello, World.</p>
</body>
</html>

 Show me 

The following example shows the information found in this document’s HEAD element.

<html>
<head>
<title>HTML Elements Reference: HEAD Element</title>

<meta name="description" content="Abakada, a workshop on Web site design and development. 
   Step-by-step how-to pages help you learn skills and do specific tasks as you plan, build and manage your Web site, 
   from start to finish." />

<meta name="keywords" content="HTML, CSS, JavaScript, DHTML, web design, web development" />

<meta name="author" content="Reynald Nuñez" />

...

</head>
See Also

HTML   TITLE   BODY



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note