|
8 | 8 | </head> |
9 | 9 | <body> |
10 | 10 | <div class="parent"> |
11 | | - <div data-screen class="screen">0</div> |
| 11 | + <div data-screen class="screen" aria-label="Calculator Screen">0</div> |
12 | 12 | <div class="sliding-part"> |
13 | | - <button data-value="AC" class="child symbol">AC</button> |
14 | | - <button data-value="minus" class="child symbol">+/-</button> |
15 | | - <button data-value="%" data-operator class="child symbol">%</button> |
16 | | - <button data-value="/" data-number class="child operator">÷</button> |
17 | | - <button data-value="7" class="child digit">7</button> |
18 | | - <button data-value="8" data-number class="child digit">8</button> |
19 | | - <button data-value="9" class="child digit">9</button> |
20 | | - <button data-value="*" data-operator class="child operator">x</button> |
21 | | - <button data-value="4" class="child digit">4</button> |
22 | | - <button data-value="5" class="child digit">5</button> |
23 | | - <button data-value="6" class="child digit">6</button> |
24 | | - <button data-value="-" data-operator class="child operator">-</button> |
25 | | - <button data-value="1" class="child digit">1</button> |
26 | | - <button data-value="2" class="child digit">2</button> |
27 | | - <button data-value="3" class="child digit">3</button> |
28 | | - <button data-value="+" data-operator class="child operator">+</button> |
29 | | - <button data-value="0" class="child zero">0</button> |
30 | | - <button data-value="DE" class="child DE">DE</button> |
31 | | - <button data-value="." class="child">.</button> |
32 | | - <button data-value="=" data-operator class="child operator">=</button> |
33 | | - <button data-value="history" class="history-btn">history</button> |
34 | | - <button data-value="(" data-operator class="child operator">(</button> |
35 | | - <button data-value=")" data-operator class="child operator">)</button> |
| 13 | + <button data-value="AC" class="child symbol" aria-label="All Clear">AC</button> |
| 14 | + <button data-value="minus" class="child symbol" aria-label="Toggle Sign">+/-</button> |
| 15 | + <button data-value="%" data-operator class="child symbol" aria-label="Percentage">%</button> |
| 16 | + <button data-value="/" data-number class="child operator" aria-label="Divide">÷</button> |
| 17 | + <button data-value="7" class="child digit" aria-label="Number 7">7</button> |
| 18 | + <button data-value="8" data-number class="child digit" aria-label="Number 8">8</button> |
| 19 | + <button data-value="9" class="child digit" aria-label="Number 9">9</button> |
| 20 | + <button data-value="*" data-operator class="child operator" aria-label="Mutiply">x</button> |
| 21 | + <button data-value="4" class="child digit" aria-label="Number 4">4</button> |
| 22 | + <button data-value="5" class="child digit" aria-label="Number 5">5</button> |
| 23 | + <button data-value="6" class="child digit" aria-label="Number 6">6</button> |
| 24 | + <button data-value="-" data-operator class="child operator" aria-label="Minus">-</button> |
| 25 | + <button data-value="1" class="child digit" aria-label="Number 1">1</button> |
| 26 | + <button data-value="2" class="child digit" aria-label="Number 2">2</button> |
| 27 | + <button data-value="3" class="child digit" aria-label="Number 3">3</button> |
| 28 | + <button data-value="+" data-operator class="child operator" aria-label="Add">+</button> |
| 29 | + <button data-value="0" class="child zero" aria-label="Number 0">0</button> |
| 30 | + <button data-value="DE" class="child DE" aria-label="Delete">DE</button> |
| 31 | + <button data-value="." class="child" aria-label="Decimal point">.</button> |
| 32 | + <button data-value="=" data-operator class="child operator" aria-label="Equal sign">=</button> |
| 33 | + <button data-value="history" class="history-btn" aria-label="History button">history</button> |
| 34 | + <button data-value="(" data-operator class="child operator" aria-label="Opening parenthesis">(</button> |
| 35 | + <button data-value=")" data-operator class="child operator" aria-label="Closing parenthesis">)</button> |
36 | 36 | </div> |
37 | 37 |
|
38 | 38 | <div class="computation-history-parent"> |
39 | 39 | <h3>history</h3> |
40 | | - <ul class="computation-history"></ul> |
41 | | - <button class="clear-history-btn">clear history</button> |
| 40 | + <ul class="computation-history" aria-label="Computation History"></ul> |
| 41 | + <button class="clear-history-btn" aria-label="Clear History">clear history</button> |
42 | 42 |
|
43 | 43 | </div> |
44 | 44 |
|
|
0 commit comments