HTML <input type="url">
Example
Define a field for entering a URL:
Add your homepage: <input type="url" name="homepage">
Try it Yourself »
Definition and Usage
The <input type="url"> defines a field for entering a URL.
The input value is automatically validated before the form can be submitted.
Browser Support
The numbers in the table specify the first browser version that fully supports the element.
Attribute | |||||
---|---|---|---|---|---|
type="url" | Yes | 10.0 | Yes | Yes | 10.1 |
Syntax
<input type="url">