HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
HTML <button> tag : Two buttons with equal names, that submit different values when clicked
The name
attribute specifies the name for a
<button>
element.
The name
attribute is used to reference form-data after
the form has been submitted, or to reference the element in a JavaScript.
<button>
elements can share the same name. This allows you
to have several buttons with equal names, which can submit different values when
used in a form.
Attribute | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
Value | Description |
---|---|
name | The name of the button |
❮ HTML <button> tag