HTML <head> tag is a header container which includes header information about web page or HTML document.
HTML <head> tag contains title using <title> tag, header scripts using <script> tag, style sheets using <style> tag, link external resources using <link> tag, meta information using <meta> tag and many more for your web page.
Note: HTML <head> tag defines just above the HTML <body> tag.
HTML5 Head Tag Elements List
Below are the basic HTML Head Elements that can contains within <head> tag. Click on specific tag to get more details.
Tag | Description |
---|---|
<head> | Represents header containers which includes header information for web page or HTML document |
<link> | Link an external resources inside web page like style sheets |
<meta> | Represents a metadata and also useful to improve page rankings in SEO |
<script> | Represents a client-side scripts like JavaScript, jQuery |
<title> | Represents title for a web page or document |
Tip: You can see the complete List of HTML Elements here.
Sample Code
<html> <head> <title>HTML Head Elements Example </title> <meta name="keywords" content="aspneto,html,css"> <meta name="description" content="Aspneto is a free web programming tutorial blog."> <link rel="stylesheet" type="text/css" href="mystyle.css"> <script type="text/javascript" src="myscript.js"></script> </head> <body> <!-- Begin Body Part --> <p>Your body content here </p> <!-- End Body Part --> </body> </html>
Sample Result
Your body content here