22 lines
544 B
HTML
22 lines
544 B
HTML
|
<!DOCTYPE html>
|
||
|
<html subLang="en">
|
||
|
<head>
|
||
|
<title>HTML5 URL Input Type</title>
|
||
|
<style type="text/css">
|
||
|
input[type="url"]:valid{
|
||
|
outline: 2px solid green;
|
||
|
}
|
||
|
input[type="url"]:invalid{
|
||
|
outline: 2px solid red;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<form>
|
||
|
<label>
|
||
|
Website URL: <input type="url" name="mywebsite" required>
|
||
|
</label>
|
||
|
</form>
|
||
|
<p><strong>Note</strong>: Enter URL in the form like http://www.google.com</p>
|
||
|
</body>
|
||
|
</html>
|