/
area.html
31 lines (27 loc) · 935 Bytes
/
area.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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Area of Triangles </title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<div><a href="./index.html">Home</a></div>
<h1>Area of Triangles</h1>
<form action="#" onsubmit="return false">
<label for="base" > base = </label>
<input type="number" required class="side" min="1">
<label for="height"> height= </label>
<input type="number" class="side" required min="1">
<button id="btn-submit" type="submit">Check</button>
</form>
<p>Formula of calculating area of triangle is =[ Height*base/2] </p>
<p>Note- all units measured in cm</p>
<p id="message"></p>
</main>
<script src="./area.js"></script>
</body>
</html>