In this section, we will learn what name attribute is and how it works.
What is name Attribute in HTML <button> Tag?
The name attribute is used to set a name for the target <button> element.
Also, this name can be used in servers to access the value of this element.
HTML name Attribute in <button> Tag Syntax:
<button name = "name"> </button>
<button> Tag name Attribute Values
The value we set to the name attribute could be any name wrapped with a pair of double quotation.
Example: using name attribute in HTML <button> tag
See the Pen using name attribute in HTML <button> tag by Omid Dehghan (@odchan1) on CodePen.