Input Type: URL

This input type is used for input fields that should contain a URL address. Depending on browser support, the URL field can be automatically validated when submitted.

<input type="url">
HTML file: Displayed by browser:
<form action="http://www.w3schools.com/html/action_page.php">
  Add your homepage:
  <input type="url" name="homepage">
  <input type="submit">
</form>
Add your homepage:

Some smartphones recognize the URL type, and adds ".com" to the keyboard to match URL input. This input type is supported by most browsers, except Safari.

Back button Table of Contents Next button