-
Notifications
You must be signed in to change notification settings - Fork 26.6k
/
index.html
56 lines (51 loc) · 1.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title><input type="url"> example</title>
<style>
div {
margin-bottom: 10px;
position: relative;
}
input[type="number"] {
width: 100px;
}
input + span {
padding-right: 30px;
}
input:invalid+span:after {
position: absolute; content: '✖';
padding-left: 5px;
}
input:valid+span:after {
position: absolute;
content: '✓';
padding-left: 5px;
}
</style>
</head>
<body>
<form>
<div>
<label for="myURL">Enter the problem website address:</label>
<input id="myURL" name="myURL" type="url"
required pattern=".*\.myco\..*"
title="URL should be in a myco domain">
<span class="validity"></span>
</div>
<div>
<label for="myComment">What is the problem?</label>
<input id="myComment" name="myComment" type="text"
required>
<span class="validity"></span>
</div>
<div>
<button>Submit</button>
</div>
</form>
<script>
</script>
</body>
</html>