<!DOCTYPE html>
<html>
<head>
<title>Chạy Thử Kiểu số (tel) trong thẻ INPUT</title>
</head>
<body>
<h1>Chạy Thử Kiểu số (tel) trong thẻ INPUT</h1>
<p>Chỉ cho phép nhập số, trên di động có kích hoạt bàn phím nhập số nên rất tiện lợi:</p>
<form method="POST" action="">
<label for="sodienthoai">Số điện thoại</label>
<input type="tel" name="dienthoai" id="sodienthoai" placeholder="123-45-678" pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}" required>
<input type="submit" name="gui" value="GỬI">
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Chạy Thử Kiểu số (tel) trong thẻ INPUT</title>
</head>
<body>
<h1>Chạy Thử Kiểu số (tel) trong thẻ INPUT</h1>
<p>Chỉ cho phép nhập số, trên di động có kích hoạt bàn phím nhập số nên rất tiện lợi:</p>
<form method="POST" action="">
<label for="sodienthoai">Số điện thoại</label>
<input type="tel" name="dienthoai" id="sodienthoai" placeholder="123-45-678" pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}" required>
<input type="submit" name="gui" value="GỬI">
</form>
</body>
</html>