Html5 Meta Tag

The HTML5 meta tag is used to tells metadata for the HTML page. We will define meta tag 4 types that is decription, author, keywords and page refresh or set cookies. In the <meta> tag we will use inside of between <head> and </head> tag. In the metadata can not see user but it identify machine only.

In the <meta> tag scheme attribute is not supported in html5 but new attribute came that is charset.

Syntax:

<meta name = "" content = "" />
<meta http-equiv = "" content = "" />

Example Code



<html>
<head>
    Following example define keywords for search engines:
    <meta name = "keywords" content = "HTML, CSS, PHP, PHP Scripts" />

    Following example define a description for web page:
    <meta name = "description" content = "Free HTML5 Tutorials" />

    Following example define the last revision for web page:
    <meta name = "revised" content = " Mahesh , 15/06/2011" />

    Following example refresh page every 10 seconds:
    <meta http-equiv = "refresh" content = "10" />
</head>
<body>
  <p> You Can Not See Meta Tag ... </p>
</body>
</html>

Out Put:

You Can Not See Meta Tag ...

In the above example has been added to <meta> tag inside of between <head> and </head> tag.