![]() |
The Depending on browser support, the url field can be automatically validated when submitted. Some smartphones recognize the url type, and adds ".com" to the keyboard to match url input. |
Example:
HTML
<form>
<label for="homepage">Add your homepage:</label>
<input type="url" id="homepage" name="homepage">
</form>
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>Display a URL Input Field</h1>
<p>The <strong>input type="url"</strong> is used for input fields that should contain a URL address:</p>
<form action="/action_page.php">
<label for="homepage">Add your homepage:</label>
<input type="url" id="homepage" name="homepage">
<input type="submit" value="Submit">
</form>
</body>
</html>
How is to look HTML Input Type Url | HTML Input Types |
Full Code Example of HTML Input Type Url | HTML Input Types |
Read Full: | HTML Input Types |
Category: | Web Tutorial |
Sub Category: | HTML Input Types |
Uploaded by: | Admin |
Views: | 101 |
Reffered: https://www.w3schools.com/html/html_form_input_types.asp