Picture it. A box with a screen at the top. Then it has rows of numbers. Buttons for the operations. A button for equals and for clear. I’ve never coded a calculator before, so we’ll try it together.
I suggest starting by sketching out what you want it to look like. You may want to use flex to grow and shrink your calculator according to the size of the screen, or maybe you want to use display: in-line block to place your buttons.
We’ll need to assign a width to each button so that they line up.
Today, write your html.
Here’s my code.
You can see this lesson on YouTube.