The Head Elements in HTML

Html is a language of markups in which there are some elements used in the markups Most Important Elements among them is HEAD ELEMENT In this post I just deal with the Head Section of the documents
let us just know about which tags are used in head section ,
 2.<meta> tag
 3.<script> </script>tag
 4.<style> </style> tag
Following are the elements or tags used under head tag

1.Specifying the Document Title

The <head>element of an HTML document contains seceral other elements,including the document title .THe document title is deliminted between <title> tags
for example
<title>Welcome in my blog</title>
This shows the title of website in the title bar of browser
title show
This is the example shown

2.Providing Information to Search Engines

<head> section can also include <meta> tags. These tags are not rendered as visible text in the document; they are used to pass information and commands to the client browser.
As its name implies the <meta> tag contains meta information for the document. Meta information is data about the document itself , instead of information about the document’s content
The amount of information you can specify with <meta> tags is extensive
example of meta tag is :-
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1/>
you can also specify how the client browser treats the document you can specify how ling the document should be cached<meta http-equiv=”pragma” content=”no-cache”/>
The description and keywords data is provided by the following tow <meta> tags:
<meta name=”description” content=”the affordable day spa”/>
<meta name=”keywords” content=”web design, html, css, “/>
*http-equiv:used to supply or replace HTTP header information

3. Script Sections

HTML documents can include scripting sections .Such sections typically contain Javascript script , but other types of scripting (for ex- VB scripting )cans also be used.
All scripting in a document should appear between <script> tags
for example:
<script type=”text/javascript”>
  ……………..scripting codes….. 

4.Style Sections

Style Blocks are another large section that can appear in the head section of the document.Style blocks are formatted as shown in the following listing
for example:-
<style type=”text/css”>
 …….style defination…….
So these are the important elements which can be used in the head section
so by concatenating these we get something like this
<title> Noeikweb</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1/>
<meta name=”description” content=”the affordable day spa”/>
<meta name=”keywords” content=”web design, html, css, “/>
<script type=”text/javascript”>
  ……………..scripting codes….. 
<style type=”text/css”>
 …….style defination…….
………body section …….
So This is all about the Head Element Section of HTML Documentation .
Hope you all understand if any problem in understanding please leave a message i will surely try to solve your problem ….
enjoy and keep visiting

Add a Comment

Your email address will not be published. Required fields are marked *