name (Meta object)
all
alt
ch
dir
id
min
rel
top
url
URL
urn
TOC
Collapse the table of content
Expand the table of content

name attribute | name property

Sets or retrieves the value specified in the content attribute of the meta object.

HTML 4.01 Specification, Section 7.4.4

 

Syntax

HTML<element name="p" ... >
JavaScript

p = object.name

 

Property values

Type: String

name

Arbitrary value.

Description

Associated content attribute describes the containing document. Some search engines use this to provide the user with a document summary in the result of a search.

DownloadOptions

A Windows Store app using JavaScript for Windows XP SP2. Associated content attribute determines the visibility of buttons in the File Download dialog box.

Note  If more than one meta tag is set with the DownloadOptions value, a Windows Store app using JavaScript uses the last one.
 
ValueCondition
noopen

Hides either the Run or the Open button from the File Download dialog box, depending on which button would normally be displayed.

nosave

Hides the Save button from the File Download dialog box.

 

Generator

Associated content attribute identifies the name of the application used to create the document.

Keywords

Associated content attribute consists of comma-delimited words describing the document. Some search engines use this to allow the user to perform a keyword search.

ProgID

Associated content attribute contains the programmatic identifier of the document's default editor.

Referrer

Associated content attribute indicates what amount of data the User Agent should pass to linked resources in the HTTP referer header.

Note  Can be overridden by the rel="noreferrer" attribute in the <a> and <area> elements.
 
ValueCondition
never

Pass an empty string, no information about the resource.

default

Passes the whole URI when the page containing this instruction is accessed via an unencrypted (HTTP) transport. Passes an empty string when the page containing this instruction is accessed via a TLS encrypted (HTTPS) transport.

origin

Passes the origin of the page containing the instruction, but not the full URI. An example of its use might be to protect the identity of a user who has a link out on their profile page. The linked host will get the origin identifying your site, but not the full URI.

always

Passes the whole URI regardless of the transport.

 

Robots

Associated content attribute indicates whether the containing document should be indexed by search engines that recognize the meta object.

ValueCondition
all

Search engines can index the containing document.

noindex

Search engines cannot index the containing document.

 

Template

Associated content attribute specifies the location of the template used to edit the document. Use this in conjunction with the ProgID meta object if the editor supports document templates.

Standards information

Remarks

The name attribute typically is assigned one of the preceding well-defined values, but any arbitrary value can be specified. Custom tools can be developed to perform special actions on documents containing arbitrary meta tags.

See also

meta

 

 

Show:
© 2016 Microsoft