HTML Calculator
HTML Calculator
Here are two examples of code for making a simple calculator using HTML and CSS:
```
<!DOCTYPE html>
<html>
<head>
<title>Simple Calculator</title>
<style>
table, td {
border-collapse: collapse;
td {
padding: 5px;
text-align: center;
input[type="text"] {
width: 100%;
height: 30px;
padding: 5px;
font-size: 18px;
text-align: right;
input[type="button"] {
width: 100%;
height: 30px;
font-size: 18px;
background-color: #4CAF50;
border: none;
color: white;
cursor: pointer;
input[type="button"]:hover {
background-color: #3E8E41;
</style>
</head>
<body>
<table>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</body>
</html>
```
<!DOCTYPE html>
<html>
<head>
<title>Simple Calculator</title>
<style>
.calculator {
display: grid;
grid-gap: 5px;
padding: 10px;
background-color: #f2f2f2;
input[type="text"] {
grid-column: 1 / span 4;
height: 50px;
font-size: 24px;
text-align: right;
padding: 5px;
input[type="button"] {
height: 50px;
font-size: 24px;
background-color: #4CAF50;
border: none;
color: white;
cursor: pointer;
input[type="button"]:hover {
background-color: #3E8E41;
</style>
</head>
<body>
<div class="calculator">
</div>
</body>
</html>
```
Note that these examples are just simple calculators and do not cover all possible cases or error
handling. They should be used as a starting point for building a more comprehensive calculator program.