Asked by: Arundhati Calvo Parratechnology and computing programming languages
Last Updated: 22nd April, 2020
Click to see full answer.
How do you add two values in HTML?
Two numbers can be added by passing input value in the form.
Adding in Form
- <form method="post">
- Enter First Number:
- <input type="number" name="number1" /><br><br>
- Enter Second Number:
- <input type="number" name="number2" /><br><br>
- <input type="submit" name="submit" value="Add">