Body mass calculator
Height and weight in, a number and what it means out · Tool ●○○
Change these if you like
Prompt
Make a body mass index calculator using centimetres and kilograms. Make it a single HTML file that opens in a browser with nothing to install and no other files. Put the CSS and JavaScript inside it. Do not use image files or any external address; use emoji or letters if you need a symbol. Two inputs, and the result appears as I type. Show the number to one decimal place and which band it falls in. Draw a simple bar with the bands marked and a pointer showing where the result sits. That says more than the number alone. ⚠️ Add one short line saying this is a rough guide and not medical advice. It does not account for muscle, age, or build. Do not phrase any band as a judgement about the person. When you are done, try an empty field and a zero and check neither produces a nonsense result.
What it uses: One file only · Say what it is first · Decide what shows · Pin down what not to do
If it shows a result before both fields are filled, ask it to "wait until both numbers are there".
Paste what came back
You might also like