Home HTML HTML Head Elements

HTML Head Elements

13
0

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
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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

18 − eighteen =