-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidaCPF.html
48 lines (44 loc) · 1.37 KB
/
validaCPF.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<script src="validaCPF.js"></script>
<title>Formulário de contato</title>
</head>
<body>
<h1>Formulário de Contato</h1>
<form id="contactForm" onsubmit="return validateForm()">
<div>
<label for="name">Nome:</label>
<input type="text" id="name" name="name">
</div>
<div>
<label for="email">E-mail:</label>
<input type="email" id="email" name="email">
<span id="emailError" class="error"></span>
</div>
<div>
<label for="phone">Telefone:</label>
<input type="text" id="phone" name="phone">
</div>
<div>
<label for="address">Endereço:</label>
<input type="text" id="address" name="address">
</div>
<div>
<label for="cpf">CPF:</label>
<input type="text" id="cpf" name="cpf">
<span id="cpfError" class="error"></span>
</div>
<div>
<label for="message">Mensagem:</label>
<textarea id="message" name="message"></textarea>
</div>
<div>
<input type="submit" value="Enviar">
</div>
</form>
</body>
</html>