You are here: Reference > HTML > attributes > name (meta)

name attribute (meta)

Browser support:
Sets the name given to the meta information. Use it with the content attribute attribute to create a well-defined meta tag.
JavaScript page for this attribute: name. You can find other example(s) there.

Possible values:

String that sets a predefined type or a type defined by the user.
The following are predefined types:
Defines a secondary description.
Records the name of the author of the document.
<meta name="author" content="" />
Classify the site into the appropriate category.
Used to include copyright information into the document.
<meta name="copyright" content="© 2009" />
Some search engines pick up this description to show with the results of searches.
<meta name="description" content="...Help page for meta tag..." />
Declares whether the document is available to the web or on an intranet.
web - The document is available for the full internet.
intranet - The document is only available for intranet use.
<meta name="distribution" content="web" />
Indicates completion status of the document.
Indicates copyright status of the document.
Specifies the type of the document.
The associated content attribute determines what buttons are visible on the File Download dialog box.
Specifies the date and time when the page expires.
<meta name="expires" content="Wed, 9 Nov 2011 12:00:00 GMT" />
The name of the program that created the document.
This is an addition to the robots META Command, it informs only the Google search engine about indexing, archiving and link following rules.
noarchive - Prevent the Google search engine from archiving the page
nofollow - The page can be indexed, but links should not be followed.
noindex - Google robots should follow links, but should not index the page.
nosnippet - Prevent the Google search engine from saving snippets and archiving the document.
<meta name="googlebot" content="noarchive" />
Informs search engines what your web site or page is about. It is recommended to always specify this type of meta, because it is needed by search engines to catalogize the page.
<meta name="keywords" content="help, html help, JavaScript help, CSS help, manual ..." />
Use this tag to prevent any Microsoft product from automatically generating smart tags.
The name of the document.
Defines the owner of the page or site.
Indicates of the document's default editor
A simple rating for a site.
Indicates that the document displays for a specified amount of time before switching to a new URL or refreshing the current page. Useful for redirecting browsers to other pages, or to refresh the current page (news page).
<meta name="refresh" content="15" /> <meta name="refresh" content="15;URL=" />
Email address of a contact for the document.
Indicates the type of web resource.
Defines how often search engine spiders should revisit your site.
Defines page indexing mechanisms for robots, search engine indexing and link following rules.
The content attribute should contain a comma separated list of the following values:
ALL - Robots should follow links, index and archive this page.
FOLLOW - Search engine robots should follow links from this page.
INDEX - Robots should include and index this page.
NOARCHIVE - Prevent search engines from archiving the page.
NOINDEX - Robots should follow links, but should not index the page.
NOFOLLOW - The page can be indexed, but links should not be followed.
NONE - Search engine robots can ignore the page.
<meta name="robots" content="ALL" /> <meta name="robots" content="INDEX,NOFOLLOW" />
The associated content attribute specifies the location of the template used to edit the document.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the name attribute:
    <meta name="author" content="" />
    <meta name="copyright" content="&copy; 2009" />
    <meta name="description" content="...Help page for meta tag..." />
    <meta name="robots" content="ALL" />
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content