top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the default value of HTML form Input type submit Attribute?

0 votes
381 views
What is the default value of HTML form Input type submit Attribute?
posted Mar 23, 2016 by Debolina Charaborthy

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

If we don't set the submit button's value attribute, the button will get a default text "Submit".try this example

<form action="action_page.php">
  Employee name:
  <input type="text" name="EmployeeName" value="Shivam Pandey"><br>
   Employee Company:
  <input type="text" name="CompanyName" value="QueryHome"><br><br>
  <input type="submit">
</form>

and try this example too when we set the value attribute:

   <form action="action_page.php">
      Employee name:
      <input type="text" name="EmployeeName" value="Shivam Pandey"><br>
       Employee Company:
      <input type="text" name="CompanyName" value="QueryHome"><br><br>
      <input type="submit" **value="Submit Employee Details"**>
    </form>
answer Mar 23, 2016 by Shivam Kumar Pandey
...