Home HTML HTML Head Elements

HTML Head Elements


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

    <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>
    <!-- Begin Body Part -->
    <p>Your body content here </p>
    <!-- End Body Part -->

Sample Result

Your body content here
Previous articleHTML Body Elements
Next articleHTML Event Attributes (Updated HTML5 Event Atrributes List)
Hi there, I am Mayank, the man behind Technical Mack. I started AspnetO with a motive to educate people on various programming languages ranging from beginners to expert level. Through this blog, I aim to provide more insightful content.


Please enter your comment!
Please enter your name here

eighteen − fourteen =