-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (40 loc) · 1.96 KB
/
index.html
File metadata and controls
45 lines (40 loc) · 1.96 KB
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
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="description"
content="Calculate tips easily with the Tip Calculator, a basic JavaScript application for determining gratuities." />
<meta name="keywords"
content="tip calculator, JavaScript calculator, gratuity calculator, basic tip project, calculate tips" />
<meta property="og:title" content="Tip Calculator" />
<meta property="og:description"
content="Calculate tips easily with the Tip Calculator, a basic JavaScript application for determining gratuities." />
<meta property="og:image" content="https://coderespite.com/image/js-projects/tip-calculator.png" />
<meta property="og:url" content="https://coderespite.com/projects/js-projects/tip-calculator" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Tip Calculator" />
<meta name="twitter:description"
content="Calculate tips easily with the Tip Calculator, a basic JavaScript application for determining gratuities." />
<meta name="twitter:image" content="https://coderespite.com/image/js-projects/tip-calculator.png" />
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tip-calculator</title>
</head>
<body>
<main>
<div class="container">
<h1 class="title">Tip Calculator</h1>
<p class="subtitle">Enter the bill amount and tip percentage to calculate the total.</p>
<label for="amount">Bill amount:
<input type="number" id="amount">
</label>
<label for="percentage"> Tip percentage:
<input type="number" name="" id="percentage">
</label>
<button id="calculate">Calculate</button>
<h3 id="total">Total: <span id="totalValue">0</span></h3>
</div>
</main>
<script src="script.js"></script>
</body>
</html>