-
Notifications
You must be signed in to change notification settings - Fork 0
/
hypotenuse.html
39 lines (39 loc) · 1.26 KB
/
hypotenuse.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
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Is Triangle ?</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header class="header">
<nav class="navbar">
<div>FUN WITH TRIANGLES</div>
<ul>
<li><a href="istriangle.html">Is Triangle?</a></li>
<li><a href="index.html">Quiz</a></li>
<li><a href="hypotenuse.html">Hypotenuse</a></li>
<li><a href="area.html">Area of Triangle</a></li>
</ul>
</nav>
</header>
<div class="container">
<h1>Calculate Hypotenuse of a triangle</h1>
<label for="base-input">Enter base value (a) =</label>
<input class="base-input" type="number" />
<label for="height-input">Enter height value (b) =</label>
<input class="height-input" type="number" />
<button class="hypotenuse-button">Calculate Hypotenuse</button>
<div>
<p>Hypotenuse formula</p>
<p>√(base² + height²)</p>
</div>
<div>
<p class="output-hypotenuse"></p>
</div>
</div>
</body>
<script src="/hypotenuse.js"></script>
</html>