Meta Object
The name property sets or returns a name for the information in the content attribute.
The value of the name attribute depends on the value of the content attribute.
The name property can hold a predefined value, or a user-defined value.
Set the name property:
Return the name property:
The predefined name values are:
| Value | Description |
|---|---|
| abstract | Defines a secondary description |
| author | Defines the author of the document. Example: <meta name="author" content="Hege Refsnes"> |
| classification | Classifies the site into the correct category |
| copyright | Defines copyright information of the document. Example: <meta name="copyright" content="2011© W3Schools.com"> |
| description | Search engines can pick up this description to show with the results of searches. Example: <meta name="description" content="Free web tutorials"> |
| distribution | Declares whether the document is available to the web or on an intranet.
Example: |
| doc-class | Specifies completion status of the document |
| doc-rights | Specifies copyright status of the document |
| doc-type | Specifies the type of the document |
| DownloadOptions | The associated content property determines what buttons are visible on the File Download dialog box |
| expires | Specifies the date and time when the page expires. Example: <meta name="expires" content="Fri, 10 Jun 2011 12:00:00 GMT"> |
| generator | Specifies the name of the program that generated the document |
| googlebot | Informs the Google search engine about indexing, archiving and link-following rules.
Example: |
| keywords | Informs search engines what your site is about. Tip: Always specify keywords (needed by search engines to catalogize the page). Example: <meta http-equiv="keywords" content="HTML, HTML DOM, JavaScript"> |
| MSSmartTagsPreventParsing | Prevents any Microsoft product from automatically generating smart tags |
| name | Specifies the name of the document |
| owner | Defines the owner of the page or site |
| progid | Defines the id of a program used to generate the document |
| rating | Defines webpage rating |
| refresh | The document will display for a specified amount of time before refreshing or switch to a new URL. Example: <meta name="refresh" content="10"> <meta name="refresh" content="10;URL=http://www.w3schools.com"> |
| reply-to | Defines an email address of a contact for the document |
| resource-type | Defines the type of web resource |
| revisit-after | Defines how often search engine spiders should revisit the site |
| robots | 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:
Example: |
| Template | The content attribute should specify the location of the template used to edit the document |
| others | You can define your own names in a schema |
![]()
The name property is supported in all major browsers.
Display the value of the name attribute of the <meta> tag:
Meta Object
Your message has been sent to W3Schools.