The META elements have name/value pairs describing properties of the HTML document ex:-   author, expiry date, a list of keywords etc.

The <meta> tag does not have a closing tag but it holds information within its attributes. <meta> tags placing inside the header document which is represented by <head> and </head> tags.

Meta Keyword

HTML, Keyword Meta Tags is important tag that shows keywords about the document.
Example:–

<!DOCTYPE html>

<html>

<head>

<title>Meta Tags Example</title>

<meta name=”keywords” content=”HTML, Php, SEO, Meta Tags, Metadata” />

</head>

<body>

<p>Hello Keyword!</p>

</body>

</html>

Meta Description

<meta> description tag used for a short description about the document. This tag used by various search engines while indexing a webpage for searching purpose.
Example:–

<!DOCTYPE html>

<html>

<head>

<title>Meta Tags Example</title>

<meta name=”keywords” content=”HTML, Php, SEO, Meta Tags, Metadata” />

<meta name=”description” content=”this is learning text description” />

</head>

<body>

<p>Hello Keyword!</p>

</body>

</html>

Meta Revision Date

Revision date <meta> tag provide information about last updated time of the document.
Example:–

<!DOCTYPE html>

<html>

<head>

<title>Meta Tags Example</title>

<meta name=”keywords” content=”HTML, Php, SEO, Meta Tags, Metadata” />

<meta name=”revised” content=”webetutorial, 11/12/2015 ” />

</head>

<body>

<p>Hello Keyword!</p>

</body>

</html>

Setting Cookies

Cookies <meta> tag used for store cookies on client side and later this information could be used by the Web Server for tracking a site visitor.
Example:–

<!DOCTYPE html>

<html>

<head>

<title>Meta Tags Example</title>

<meta name=”keywords” content=”HTML, Php, SEO, Meta Tags, Metadata” />

<meta name=”cookie” content=”userid=xyz; expires=Wednesday, 11-nov-15 20:58:59 GMT;” />

</head>

<body>

<p>Hello Keyword!</p>

</body>

</html>

Meta Author Name

We could use an author name in a web page using meta tag.
Try following example of the below sample code box –

<!DOCTYPE html>

<html>

<head>

<title>Meta Tags Example</title>

<meta name=”keywords” content=”HTML, Php, SEO, Meta Tags, Metadata” />

<meta name=”author” content=”victor macclien” />

</head>

<body>

<p>Hello Keyword!</p>

</body>

</html>

Character Set

Character set <meta> tag used within the webpage. Character set use for encoding process of Web pages.
Example:–

<!DOCTYPE html>

<html>

<head>

<title>Meta Tags Example</title>

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />

</head>

<body>

<p>Hello Keyword!</p>

</body>

</html>

Related Article