How about
<input type="text" pattern="[789][0-9]{9}">
More Related Contents:
- An invalid form control with name=” is not focusable
- Manually Triggering Form Validation using jQuery
- How can I change or remove HTML5 form validation default error messages?
- What’s the valid way to include an image with no src?
- HTML5 validation when the input type is not “submit”
- How do I get the collection of Model State Errors in ASP.NET MVC?
- Delay HTML5 :invalid pseudo-class until the first event
- Are nested HTML comments possible?
- HTML5 Required input styling
- What elements can be contained within a tag?
- Is there a minlength validation attribute in HTML?
- How do I make a field required in HTML?
- How do I style the HTML form validation error messages with CSS?
- How can I change or remove HTML form validation default error messages?
- Is div inside list allowed? [duplicate]
- Bad value X-UA-Compatible for attribute http-equiv on element meta
- Is the copyright meta tag valid in HTML5?
- What’s the point of valid CSS/HTML?
- How to get the text from the HTML5 input field error message in Selenium?
- Is it possible to validate the size and type of input=file in html5
- Two divs side by side – Fluid display [duplicate]
- Can I write a CSS selector selecting elements NOT having a certain class or attribute?
- Is it sometimes bad to use ?
- How to add an image to an event with Microdata meta tag?
- Which are the standard W3C meta tags?
- Any reason not to start using the HTML 5 doctype? [closed]
- Valid content-type for XML, HTML and XHTML documents
- Use Fieldset Legend with bootstrap
- How to correctly use “section” tag in HTML5?
- How to implement a Navbar Dropdown Hover in Bootstrap v4?