<input type=”url” name=”your_url” id=”your_url” />
and that’s it. The rest of the validation is taken care of by HTML 5.
Similarly, it also handles regular expressions to make sure that, for example, no numbers are entered in the name field. Read more on how to create great web forms with HTML 5.