-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (45 loc) · 2.09 KB
/
Copy pathindex.html
File metadata and controls
45 lines (45 loc) · 2.09 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content=width initial-scale=1.0>
<script src="main.js" defer ></script>
<link rel="stylesheet" href="main.css" />
<title>Build a Calculator</title>
</head>
<body>
<div class="container">
<div class="calculator">
<div class="row first">
<button type="button" class="button purple" id="clear">C</button>
<div class="display" id="Display"></div>
</div>
<div class="row second">
<button type="button" class="button white num" id="7" >7</button>
<button type="button" class="button white num" id="8">8</button>
<button type="button" class="button white num" id="9">9</button>
<button type="button" class="button pink op" id="/">/</button>
</div>
<div class="row third">
<button type="button" class="button white num" id="4">4</button>
<button type="button" class="button white num" id="5">5</button>
<button type="button" class="button white num" id="6">6</button>
<button type="button" class="button pink op" id="*">x</button>
</div>
<div class="row fourth">
<button type="button" class="button white num" id="1">1</button>
<button type="button" class="button white num" id="2">2</button>
<button type="button" class="button white num" id="3">3</button>
<button type="button" class="button pink op" id="-">-</button>
</div>
<div class="row fifth">
<button type="button" class="button white num" id="0">0</button>
<button type="button" class="button white num" id=".">.</button>
<button type="button" class="button white equal" id="eval">=</button>
<button type="button" class="button pink op" id="+">+</button>
</div>
</div>
</div>
</body>
</html>