How to Change the Name of a Submit Button in HTML 


               


How to Change the Name of a Submit Button in HTML

HTML


How to Change the Name of a Submit Button in HTML

When creating a submit button in HTML such as below,



The Default Name of the Submit Button is "Submit Query"

However, this can be changed into anything you want. You can name this:

   

Or

   

Coding

So how do you do this in HTML?



The attribute that changes the name shown on the Submit Button is the Value attribute. You can change the text that appears on the Submit Button by setting the Value attribute to the desired name you want.

So to create a Yes Submit button, the code is:



To create a No Submit button, the code is:



To create an I Agree Submit button, the code is:



To create an I Disagree Submit button, the code is:





HTML Comment Box is loading comments...