asp.net.ph

Skip Navigation Links

NAME Attribute | name Property

Language References


Sets or retrieves the name of the META object.

Syntax


Inline <META NAME = sName...>
Script object.name = sName ]

Possible Values


sName String containing an arbitrary name or one of the following values.
Description String. The associated CONTENT attribute describes the containing document. This is used by some search engines to provide the user with a document summary in the result of a search.
Generator String. The associated CONTENT attribute identifies the name of the application used to create the document.
Keywords String. The associated CONTENT attribute consists of comma-delimited words describing the document. This is used by some search engines to allow the user to perform a keyword search.
ProgID String. The associated CONTENT attribute contains the programmatic identifier of the document's default editor.
Robots String. The associated CONTENT attribute indicates whether the containing document should be indexed by search engines that recognize the META object.
all Search engines should index the containing document.
noindex Search engines should not index the containing document.
Template String. The 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.

The property is read/write with no default value.

Remarks

While the NAME attribute is typically assigned one of the well-defined values above, any arbitrary value can be specified. Custom tools can be developed to perform special actions on documents containing arbitrary META tags.

To enable the smart edit features in Internet Explorer® 5 or later, add a META tag to the HEAD of the document. Associate "ProgID" with the NAME attribute, and associate the programmatic identifier of the desired editor with the CONTENT attribute. If the specified editor is not installed or properly registered on the user's system, the edit button is not displayed. Consult the documentation of your editor to determine its programmatic identifier.

Example

When added to the HEAD of an HTML document, the following META tags cause Internet Explorer® 5 or later to display a smart edit button on its toolbar. Because the ProgID META tag is associated with the program identifier of Microsoft® Word, the button will display the Microsoft Word icon.

In addition, when the button is clicked, Internet Explorer® loads the document into Microsoft Word using the specified document template.

<META NAME="ProgID" CONTENT="word.document">
<META NAME="Template" CONTENT=
 "C:\Program Files\Microsoft Office\Office\html.dot">
Applies To

META



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note