<!DOCTYPE html>
<html>
<head>
<title>Minimum and Maximum Values</title>
<script>
function findMinMax() {
let numberList = document.getElementById("numbersInput").value.split(",");
numberList = numberList.map(num => num.trim());
numberList = numberList.map(parseFloat);
let min = Math.min(...numberList);
let max = Math.max(...numberList);
document.getElementById("minValue").textContent = min;
document.getElementById("maxValue").textContent = max;
}
</script>
</head>
<body>
<h1>Find the Minimum and Maximum Values</h1>
<input type="text" id="numbersInput" placeholder="Enter comma-separated numbers">
<button onclick="findMinMax()">Find Min and Max</button>
<p>Minimum Value: <span id="minValue"></span></p>
<p>Maximum Value: <span id="maxValue"></span></p>
</body>
</html>