Can I create a Calculator with HTML?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rse2
    New Member
    • Oct 2011
    • 4

    Can I create a Calculator with HTML?

    Are there variables that I can use to for example create a calculator? Or can i only do that with java script? Is it possible to make a form to fill with HTML, that will calculate the answer?
    Code:
     <form name="calc" ACTION="1.calc"  METHOD="post">
    
    <select NAME="first number" size="1">
    <option SELECTED VALUE="">
                   <option VALUE="1">one</option>
                   <option VALUE="2">two</option>
    </select>
    
    <select NAME="Operation" size="2">
     <option VALUE="Add">Add</option>
                   <option VALUE="Sub">Subtract</option>
    Is Sub the variable of Subtract?
    Last edited by Niheel; Oct 10 '11, 09:08 AM. Reason: Something wrong with code tags.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    HTML is not a programming language so you can't do any of that. Javascript can.

    Code tags are used with square brackets. []

    Comment

    Working...