Advertisement
Joberne

HTML code for calculator

Oct 18th, 2017
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.02 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel = "stylesheet" href = "calculator.css" />
  5.  
  6. </head>
  7. <body>
  8. <div>
  9. <form id = "calcForm">
  10.  
  11.     <input type = "text" name = "myInput" id = "myInput" /><br /><br />
  12.     <input type = "button" value = "7" />
  13.     <input type = "button" value = "8" />
  14.     <input type = "button" value = "9" />
  15.     <input type = "button" value = "*" /><br /><br />  
  16.     <input type = "button" value = "4" />
  17.     <input type = "button" value = "5" />
  18.     <input type = "button" value = "6" />
  19.     <input type = "button" value = "-" /><br /><br />
  20.     <input type = "button" value = "1" />
  21.     <input type = "button" value = "2" />
  22.     <input type = "button" value = "3" />
  23.     <input type = "button" value = "+" /><br /><br />
  24.     <input type = "button" value = "0" />
  25.     <input type = "button" value = "/" />
  26.     <input type = "button" value = "%" />
  27.     <button type = "button" >=</button><br /><br />
  28.     <button type = "button" >CE</button>
  29. <p>Basic calculator</p>
  30. </form>
  31.  
  32. </div>
  33. <script src = "calculator.js"></script>
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement