• Teach Your Self With
             w3htmlschool.com

HTML Meta tag

The META Element includes the document information used by server (search engines) for identifying, Indexing , cataloguing documents.
The META tag is place inside the <HEAD> ..</HEAD> Elements.
The META tag have the following attributes.
HTTP-EQUIV :The HTTP servers can read the content of the document head to generate response header for any elements defining a values for this attribute. example refresh the Document after 5 seconds the code is as below:
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name="keywords" content="HTML, Meta Tags, Metadata" />
<meta name="description" content="Learning about Meta Tags." />
<meta http-equiv="refresh" content="10" />
</head>
<body>
<p>w3htmlschools.. Tutorial Web site </p>
</body>
</html>

Syntax


<meta name="[Type]" content="type the content">
<meta http-equiv="type" content="" >
Example
Example Output

HTML head Elements


Attribute Description
NameName = to define as keywords, description, author, revised, generator etc.
ContentCan be define the property's value
schemea scheme to interpret the property's value (as declared in the content attribute)
http-equivFor http response message headers meta http-equiv is used.For Example http-equiv use for refresh the page



NAME this gives the meta information name . Examples include, keywords, description, author, revised, generator etc.
CONTENT :The meta information contents to be associated with the given name and HTTP response header