-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·28 lines (26 loc) · 1.13 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple form validator</title>
<link rel="stylesheet" href="./src/style.css">
<script src="./src/app.js" type="module" async ></script>
</head>
<body>
<form method="GET" action="#" class="form" id="form-id">
<h1>Javascript - form validator</h1>
<label for="firstName">First name</label>
<input type="text" name="firstName" id="firstName" placeholder="First name">
<label for="lastName">Last name</label>
<input type="text" name="lastName" id="lastName" placeholder="Last name">
<label for="email">Email</label>
<input type="text" name="email" placeholder="john@doe.com" id="email">
<label for="textarea">Message</label>
<textarea name="textarea" placeholder="Message" rows="10" id="textarea"></textarea>
<button type="submit" class="btn btn-primary">Send</button>
</form>
<script src="./src/app.js" type="module" async ></script>
</body>
</html>