Pr.Pg Next Pg

<META> tag tutorials

  • The Meta tags module allows you to automatically provide structured metadata, aka meta tags, about your website.

  • In the context of search engine optimization, when people refer to meta tags, they are usually referring to the meta description tag and the meta keywords tag that may help improve the rankings and display of your site in search engine results.

  • Meta tags have additional uses like the Open Graph Protocol used by Facebook, specifying the canonical location of content across multiple URLs or domains.

  • <META> tag attributes are below:

 

Sr No

Attributes

Descriptions

1

Content

This attribute gives the value associated with the http-equiv or name attribute.

2

Name

This attribute specifies a name for the metadata.

3

Http-equiv

This attribute provides an HTTP header for the information/value of the content attribute.

4

Charset

This attribute specifies the character encoding for the HTML document.

 

Syntax:

<head>

<meta attribute=value>

</head>

 

Example: HTML program that uses META for search engine optimization purpose

Output:
Pr.Pg border                                              Next Pg