<div> <label for="phone">Enter your phone number:</label> <input type="tel" id="phone" name="phone" pattern="+94[7-9]{2}-[0-9]{3}-[0-9]{4}" value="+94"> </div>
<input type="text" pattern="[789][0-9]{9}">