name property (meta)
Sets or retrieves the name given to the meta information. Use it with the content property attribute to create a well-defined meta tag.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: name |
Possible values:
String that sets or retrieves 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="dottoro.com" />
|
||||||||||||||||||||||||||||
Classify the site into the appropriate category. | ||||||||||||||||||||||||||||
Used to include copyright information into the document.
<meta name="copyright" content="© 2009 Dottoro.com" />
|
||||||||||||||||||||||||||||
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.
<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 property 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.
<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=http://www.dottoro.com" />
|
||||||||||||||||||||||||||||
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 property should contain a comma separated list of the following values:
<meta name="robots" content="ALL" />
<meta name="robots" content="INDEX,NOFOLLOW" />
|
||||||||||||||||||||||||||||
The associated content property specifies the location of the template used to edit the document. |
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the name attribute:
|
|||
<head> <meta name="author" content="dottoro.com" /> <meta name="copyright" content="© 2009 Dottoro.com" /> <meta name="description" content="...Help page for meta tag..." /> <meta name="robots" content="ALL" /> </head> |
|||
|
|||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the name property:
|
||||
<head> <meta name="author" content="dottoro.com" /> <meta name="copyright" content="© 2009 Dottoro.com" /> <meta name="description" content="...Help page for meta tag..." /> <meta name="robots" content="ALL" /> <script type="text/javascript"> function GetName () { var metaTags = document.getElementsByTagName ("meta"); for (var i = 0; i < metaTags.length; i++) { alert ("The value of the name property in the " + (i+1) + ". meta tag: " +metaTags[i].name); } } </script> </head> <body > <button onclick="GetName ();">Get NAME values!</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
HTML elements:
Related pages:
External links:
User Contributed Comments