-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
53 lines (53 loc) · 2.41 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>A simple html form!</title>
<meta name="description" content="A simple HTML form">
<meta name="author" content="codecorgi">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/theme.css?v=1.0">
<link rel="stylesheet" href="/assets/app.css?v=1.0">
</head>
<body>
<div class="mdl-layout">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">Simple HTML Form </span>
</div>
</header>
<main class="mdl-layout__content">
<form action="/" method="GET">
<header>
<p><strong>This form should fail to submit if any of the values are invalid!</strong></p>
</header>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="username">
<label class="mdl-textfield__label" for="username">Username</label>
<span class="mdl-textfield__error">Invalid username :(</span>
</div>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" pattern="-?[0-9]*(\.[0-9]+)?" id="zipcode">
<label class="mdl-textfield__label" for="zipcode">ZipCode</label>
<span class="mdl-textfield__error">Invalid zipcode :(</span>
</div>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" pattern="-?[0-9]*(\.[0-9]+)?" id="email">
<label class="mdl-textfield__label" for="email">Email</label>
<span class="mdl-textfield__error">Invalid email :(</span>
</div>
<div class="submit-status">
<p class="errors">The form is invalid, please try again</p>
<p class="success">The form is invalid, please try again</p>
</div>
<div>
<button class="mdl-button mdl-js-button mdl-button--raised">
Submit
</button>
</div>
</form>
</main>
</div>
<script src="/assets/app.js"></script>
</body>
</html>