-
Notifications
You must be signed in to change notification settings - Fork 0
/
contador.html
30 lines (29 loc) · 963 Bytes
/
contador.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
<!DOCTYPE html>
<html lang="pt-br">
<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>Teste de contador de palavras</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<header>
<h1>Contador de Caracteres</h1>
</header>
<section>
<article>
<textarea name="text" id="text" placeholder="Insira o texto para análise" oninput="calcular()"></textarea>
<div id="resultado">
<h1>Resultado:</h1>
<p>Caracteres: <span id="chars">0</span></p>
<p>Palavras: <span id="words">0</span></p>
<p>Linhas: <span id="lines">0</span></p>
</div>
</article>
</section>
</main>
<script src="script.js"></script>
</body>
</html>