HTML Telephone Input Generator

An input type "tel" allows a user to enter a phone number to an input field. Depending on the browser, the element falls back to being a standard "text" input if not supported.

Preview

Properties

Code

<input type="tel" class="input-tel" name="telephone" placeholder="Phone number" id="telNum" value="123-456-7890" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}"/>