You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
728 B
26 lines
728 B
<!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>BMI Calculator with JavaScript</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<p>Height in CM:
|
|
<input type="text" id="height"><br><span id="height_error"></span>
|
|
</p>
|
|
|
|
<p>Weight in KG:
|
|
<input type="text" id="weight"><br><span id="weight_error"></span>
|
|
</p>
|
|
|
|
<button id="btn">Calculate</button>
|
|
<p id="output"></p>
|
|
</div>
|
|
<script src="script.js" charset="utf-8"></script>
|
|
</body>
|
|
</html> |