-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (28 loc) · 1.23 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculate Difference of Squares</title>
<link rel="stylesheet" href="styles.css"> <!-- Link to external CSS file -->
</head>
<body>
<div class="container1">
<h2>Calculate Difference of Squares</h2>
<!-- Input form -->
<label for="a">Enter value for a:</label>
<input type="number" id="a" name="a" step="any" required><br><br>
<label for="b">Enter value for b:</label>
<input type="number" id="b" name="b" step="any" required><br><br>
<!-- Button that triggers the JavaScript function -->
<button type="button" onclick="calculateDifferenceOfSquares()">Calculate</button>
<!-- Display results -->
<div class="result" id="difference"></div>
<div class="result" id="sum"></div>
<div class="result" id="result"></div>
</div>
<footer>Created by Ranjithkumar.R (<a href="https://github.com/beggarsmind">Beggar's Mind</a>)™</footer>
<!-- Link to external JavaScript file -->
<script src="calculate2.js"></script>
</body>
</html>