Menu
Coddy logo textTech

All buttons

Lesson 5 of 14 in Coddy's DOM Project - Calculator course.

challenge icon

Challenge

Easy
  1. Inside div 'buttons', create 18 buttons with the class name 'btn'.
  2. For the last button, add the class name ‘equal’ also!
  3. For each button, add their text in 

     

    Button TextDescription
    CClear Display
    Delete Last Character
    /Division
    *Multiplication
    7Number 7
    8Number 8
    9Number 9
    -Subtraction
    4Number 4
    5Number 5
    6Number 6
    +Addition
    1Number 1
    2Number 2
    3Number 3
    0Number 0
    .Decimal Point
    =Calculate Result

Try it yourself

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
    <body>
        <!-- Write HTML code here -->
        <script src="script.js"></script>
    </body>
</html>

All lessons in DOM Project - Calculator