name Attribute


 

Where to use the name Attribute


Description

For a param (or meta) element, the name attribute specifies a name for the object parameter (or meta property).

For a form control (e.g. textarea), it specifies the name to be sent to the processing URI for that control if the control is successful when the form is submitted. It is sent as part of a name=value pair, where the value is the "final value" of that form control. Note: The input type="image" element behaves slightly differently, in that two pairs are sent - see the Server-side Image Map Module for more details. Multiple name=value pairs are also sent for select lists when multiple option elements have been selected.

For those form controls whose data is never sent to the processing URI (e.g. input type="reset") the name attribute merely specifies a name which may be used to refer to the control from within a script (although its id attribute may also be used for that purpose).


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 16 May 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > XHTML 1.1 Indexes > Attribute Index (XHTML 1.1) > name Attribute (XHTML 1.1)