<!DOCTYPE html>
<html>
<head>
<title>Chạy Thử Kiểu số (number) trong thẻ INPUT</title>
</head>
<body>
<h1>Chạy Thử Kiểu số (number) trong thẻ INPUT</h1>
<p>Kiểu number cho phép nhập số và có nút tăng giảm, ngoài ra còn có giới hạn số nhỏ nhất, số lớn nhất và quy định số bước khi mỗi lần tăng giảm:</p>
<form method="POST" action="">
<label for="chonsoluong">Số lượng</label>
<input type="number" name="soluong" id="chonsoluong" max="1000" value="1" min="1" step="1">
<input type="submit" name="gui" value="GỬI">
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Chạy Thử Kiểu số (number) trong thẻ INPUT</title>
</head>
<body>
<h1>Chạy Thử Kiểu số (number) trong thẻ INPUT</h1>
<p>Kiểu number cho phép nhập số và có nút tăng giảm, ngoài ra còn có giới hạn số nhỏ nhất, số lớn nhất và quy định số bước khi mỗi lần tăng giảm:</p>
<form method="POST" action="">
<label for="chonsoluong">Số lượng</label>
<input type="number" name="soluong" id="chonsoluong" max="1000" value="1" min="1" step="1">
<input type="submit" name="gui" value="GỬI">
</form>
</body>
</html>