Untitled

mail@pastecode.io avatar
unknown
html
11 days ago
1.7 kB
1
Indexable
Never
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>HTML 5 Boilerplate</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <table>
      <tr>
        <td colspan="3"><input type="text" id="result"></td>
        <td><input type="button" value="c" onclick="clr()"></td>
      </tr>
      <tr>
        <td><input type="button" value="1" onclick="dis('1')" onkeydown="myFunction(event)"></td>
        <td><input type="button" value="2" onclick="dis('2')" onkeydown="myFunction(event)"></td>
        <td><input type="button" value="3" onclick="dis('3')" onkeydown="myFunction(event)"></td>
        <td><input type="button" value="/" onclick="dis('/')"></td>
      </tr>
      <tr>
        <td><input type="button" value="4" onclick="dis('4')" onkeydown="myFunction(event)"></td>
        <td><input type="button" value="5" onclick="dis('5')" onkeydown="myFunction(event)"></td>
        <td><input type="button" value="6" onclick="dis('6')" onkeydown="myFunction(event)"></td>
        <td><input type="button" value="X" onclick="dis('*')"></td>
      </tr>
      <tr>
        <td><input type="button" value="7" onclick="dis('7')" onkeydown="myFunction(event)"></td>
        <td><input type="button" value="8" onclick="dis('8')" onkeydown="myFunction(event)"></td>
        <td><input type="button" value="9" onclick="dis('9')" onkeydown="myFunction(event)"></td>
        <td><input type="button" value="-" onclick="dis('-')" onkeydown="myFunction(event)"></td>
      </tr>
    </table>
  </body>
</html>
Leave a Comment