HTML button tag
HTML <button> tag defines a button labeled by its content. Various properties make a button more useable.
<form action="files/buttontag.php" method="post">
Name:<input type="text" name="userName"><br>
Email:<input type="email" name="email"><br>
<button name="submit">submit</button>
</form>
Try </>
Tag Uses
Specific uses of <button> tagIt is used to submit, save and reset the data.
Tag omission
Both starting and ending tags are necessary for the button element.
Global Attributes
All the global attributes are applicable on the button element.
Next Previous
Was this article helpful?