-
Notifications
You must be signed in to change notification settings - Fork 0
/
FrontEnd.html
31 lines (30 loc) · 1.17 KB
/
FrontEnd.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Budget Tracker</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>Budget Tracker</h1>
<div id="budget-display">
<p>Total Income: $<span id="total-income">0</span></p>
<p>Total Expenses: $<span id="total-expenses">0</span></p>
<p>Remaining Budget: $<span id="remaining-budget">0</span></p>
</div>
<div id="form-container">
<form id="budget-form">
<label for="income">Income:</label>
<input type="number" id="income" placeholder="Enter income" required>
<button type="button" onclick="addIncome()">Add Income</button>
<label for="expense">Expense:</label>
<input type="number" id="expense" placeholder="Enter expense" required>
<button type="button" onclick="addExpense()">Add Expense">
</form>
</div>
</div>
<script src="script.js"></script>
</body>
</html>