xxxxxxxxxx
<label for="phone">Phone</label>
<div class="field">
<i class="fas fa-phone"></i>
<input id="phone" type="tel" name="phone" placeholder="Your Phone Number" required>
</div>
xxxxxxxxxx
<form>
<input type="tel" id="phone" name="phone" pattern="[+]{1}[0-9]{11,14}" required>
<button>Submit</button>
</form>
Run code snippetHide results