-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.html
102 lines (89 loc) · 2.74 KB
/
calculator.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Calculator</title>
<style>
h1{
text-align: center;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: red;
font-size: 30px;
}
.calculator {
width: 250px;
height: 250px;
background-color: red;
margin-left: 400px;
margin-top: 50px;
color: white;
}
#button {
width: 97%;
height: 60px;
}
#btn {
width: 100%;
height: 40px;
color: white;
background-color: black;
font-size: 25px;
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
}
</style>
</head>
<body>
<div class="navigation">
<nav class="nav-links">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="Contact Page.html">Contact Page</a></li>
<li><a href="Register Page.html">Register Page</a></li>
<li><a href="Login Page.html">Login Page</a></li>
<li><a href="calculator.html">My Calculator</a></li>
</ul>
</nav>
</div>
<h1>Calculator</h1>
<form Name="Calculator">
<table class="calculator" border=5>
<tr>
<td colspan=4><input id="button" name="display" type="text"></td>
<td style="display:none"><input name="M" type="number"></td>
</tr>
<tr>
<td><input id="btn" type=button value="7"></td>
<td><input id="btn" type=button value="8"></td>
<td><input id="btn" type=button value="9"></td>
<td><input id="btn" type=button value="+"></td>
</tr>
<tr>
<td><input id="btn" type=button value="4"></td>
<td><input id="btn" type=button value="5"></td>
<td><input id="btn" type=button value="6"></td>
<td><input id="btn" type=button value="-"></td>
</tr>
<tr>
<td><input id="btn" type=button value="1"></td>
<td><input id="btn" type=button value="2"></td>
<td><input id="btn" type=button value="3"></td>
<td><input id="btn" type=button value="*"></td>
</tr>
<tr>
<td><input id="btn" type=button value="0"></td>
<td><input id="btn" type=button value="00"></td>
<td><input id="btn" type=button value="000"></td>
<td><input id="btn" type=button value="%"></td>
</tr>
<tr>
<td><input id="btn" type=button value="/"></td>
<td><input id="btn" type=button value="."></td>
<td><input id="btn" type=button value=","></td>
<td><input id="btn" type=button value="="></td>
</tr>
</table>
</form>
</body>
</html>