Quackit Logo

HTML meta Tag

 

The HTML meta tag is used for declaring metadata for the HTML document.

Metadata can include document decription, keywords, author etc. It can also be used to refresh the page or set cookies.

The meta tag is placed between the <head> and </head> tags.

Example
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>HTML meta tag</title>
  <meta name="keywords"
    content="HTML, meta tag, metadata" />
  <meta name="description"
    content="HTML tag for declaring metadata for the HTML document" />
  <meta http-equiv="refresh" content="10" />
</head>
<body style="background-color:orange">
Document content goes here
</body>
</html>
Attributes:
Attributes specific to this tag:
AttributeDescription
NameName for the property. Can be anything. Examples include, keywords, description, author, revised, generator etc.
contentSpecifies the property's value.
schemeSpecifies a scheme to use to interpret the property's value (as declared in the content attribute).
http-equivUsed for http response message headers. For example http-equiv can be used to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie.
Other Attributes:
AttributeDescription
langLanguage code
dirSpecifies the direction of the text

Also see the complete list of HTML tags


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!