name (HTML attribute)

Spec
Depr. Version
No HTML 3.2
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full

Syntax

name="string"

Description

This required attribute defines the data that’s being passed to the object or applet in the parameter.

Example

The name of the parameter here is "shape":

<param name="shape" value="triangle"/>

Value

The value of the param’s name attribute very much depends on the type of object that’s being embedded into the web page. Whatever parameter name is being used, it’s understood that the object is able to make sense of the information being passed to it. In the example above, the param is named "shape", so the Java applet would presumably have an interface with a function that accepts various values, one of which is a "shape" variable. Therefore, it should understand that a shape is being passed in, and that it will need to act on the value passed to it in the value attribute.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full

Every browser listed supports this attribute.

User-contributed notes

There are no comments yet.

Related Products