Filter (Advanced Search)
Downloads
0
Views
219
Video

Video is not available... Embedded is previous playlist.

Details

The <input type="tel"> is used for input fields that should contain a telephone number.


<!DOCTYPE html>
<html>
<body>

<h2>Telephone Field</h2>

<p>The <strong>input type="tel"</strong> is used for input fields that should contain a telephone number:</p>

<form action="/php/inputTel.php" method="get">
  <label for="phone">Enter a phone number:</label><br><br>
  <input type="tel" id="phone" name="phone" value="01633-279150" placeholder="01633-279150" pattern="[0-9]{5}-[0-9]{6}" required><br><br>
  <small>Format: 123-45-678</small><br><br>
  <input type="submit" value="Submit">
</form>

</body>
</html>



Ad