head element

Certify and Increase Opportunity.
Govt. Certified HTML5 Developer

The Head Element

It is the head of the page, and contains all header elements. It is the first element after the opening <html> tag. It contains a title, a description of the page and location for CSS and JavaScript files. The element has an opening <head> tag, the closing </head> tag, and everything in between. It is a container for processing information and metadata for an HTML document.

Usually it contain following elements

<base> element for creating a “base” url for all links on the page.

<object> element for including images, JavaScript objects, Flash animations, MP3 files, QuickTime movies and other objects for a page.

<link> element for linking to an external file, such as a style sheet or JavaScript file.

<style> element for including CSS rules inside the document.

<script> element for including JavaScript or VBScript inside the document.

<meta> element includes information about the document such as keywords and a description, useful mainly for search applications.

A head tag example

<head> <title>Head tag example </title>

<meta name=”Keywords” content=” Head tag, exampleā€¯ />

<meta name=”description” content=” Head tag example” />

<base href=”http://www.vskills.com” />

<link rel=”stylesheet” type=”text/css” href=”style.css” />

<script type=”text/javascript”>

function show_alert()

{ alert(“This is confidential page!”); }


Apply for HTML5 Certification Now!!


Go to- Certified HTML5 Developer Tutorial

Get industry recognized certification – Contact us