Head tag in HTML

In the previous pages as described that an html file consists on <!DOCTYPE html>,<html>,<head>,<body>these important tags. These tags are must in an html file.Here in this tutorial we will discuss about head very briefly.

Basic syntax

<!DOCTYPE html>
      <title> </title> 

Use of head tag in html

There are many meta tags and linking of external files are done in between head tag. For example as:following tags are used in between head tag are described bellow.

Meta tags in head

Use of meta data in between head tag are given with there source code. These meta are necessary for search engine optimization of a website.

<meta charset="UTF-8">
<meta name="description" content="Free Webtags lectures and courses">
<meta name="keywords" content="HTML,CSS,XML,JavaScript,jquery,php,mysqli">
<meta name="author" content="Imran Hussain">

Explanation of meta tags

<meta charset="UTF-8">

meta tag "charset" is used to include different character set for example: ASCII, ANSI, ISO-8859-1, UTF-8, etc. ISO-8859-1 supports 256 different character codes. ASCII defined 128 different alphanumeric characters. This is used to specify the character encoding.

<meta name="description" content="Free Webtags lectures">

As in above source code the meta description is used to provides a brief summary of a web page. When you search some thing then search engine show some description after the title this is because of description tag which can influence click-through rates.

<meta name="keywords" content="HTML,CSS,XML,JavaScript,jquery,php,mysqli">

As in above source code the meta keywords tag is inserted into your web pages to provide search engines with information about your pages that by default not shown.This tag is very important in search engine activities.

<meta name="author" content="Imran Hussain">

As in above source code the author meta tag is used. If used this tag, it is easy to find the right person who is responsible for a web page or who is the editor of this page.

Linking external files

There are linking of external file syntax used in head tag is given.

<link rel="stylesheet" href="target.css">
<script src="target.js"> </script>

The Best

Comment here

If you have any query, if you want to know something about any of technical course related to computer science field, if you have any suggestion about relevant to uploaded content or if you anything wrong here (any mistake in content) than please contact us. Keep in mind, comment should be according to community guidelines.