HTML <head> Tag
In this tutorial, we will learn about head tag in HTML with the help of examples.
<head> Tag
Head tag <head> is used to specify the head section of the HTML document.
The tag used inside <head> tag are not displayed on browser's window.
The <head> tag is usually used to link other documents and define Metadata of the HTML document.
Note : Tag we can use inside the <head> tag are :
<title> tag
<style> tag
<base> tag
<link> tag
<meta> tag
<script> tag
<noscript> tag
We must have to define the <title> tag inside the <head> tag.
Syntax
<head>.......</head>
Example
<!DOCTYPE html>
<html>
<head>
<title>Head Tag</title>
</head>
<body>
<p>In this document we have used head tag.</p>
</body>
</html>
Output
In this document we have used head tag.
Global Attribute
Head Tag support all the global attributes of HTML.
Event Attribute
Head Tag support all the event attributes of HTML.
Next Tutorial
We hope that this tutorial helped you develop better understanding of the concept of head tag in HTML.
Keep Learning : )
In the next tutorial, you'll learn about HTML header
Tag.