<head>

Description

This element creates the header section of an HTML document. In the header section, you can define the title of the document, establish links to CSS style sheets, reference JavaScript code, and so on.

Example


<html>
    <head>
        <title>head element example</title>
        <link rel="stylesheet" type="text/css" href="yourstylesheet.css"
        <script language="javascript">
        alert("Hello World");
        </script>
    </head>
    <body>This is the content of the page
    </body>
</html><!--from  w w  w .j  a  v a 2s.  co  m-->

Click to view the demo

The code above generates the following result.

head




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference