Page information.
Elements inside <head> can include scripts, instruct the browser where to find style sheets, provide meta information, and more.
The following tags can be added to the head section: <base>, <link>, <meta>, <script>, <style>, and <title>.
The <title> tag defines the title of the document, and is the only required element in the head section!
Eample
<html>
<head>
<title></title>
</head>
Tag | Description |
<head> |
Information about the document. <!-- Defining the charset in HTML4 --> |
<title> |
Title of the document <title>Elements that can be used inside a <head> element:</title> |
<base> |
Specifies the base URL to use for all relative URLs contained within a document. <base href="http://www.yoursite.com/"> |
<link> |
Relationships between the current document and other documents. <link href="/default.css" rel="stylesheet" type="text/css" title="Default Style"> |
<meta> |
Metadata about an HTML document <!-- Defining the charset in HTML4 --> |
<script> |
Defines a client-side script <!-- HTML4 and (x)HTML --> |
<style> |
Defines style information for a document <style type="text/css"> |