-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (44 loc) · 1.34 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<title>Calculadora</title>
<link href="http://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/style.css" />
<script src="js/script.js"></script>
</head>
<body>
<div class="conteudo">
<div class="formulario">
<form method="" action="">
<div>
<h2 class="cabecalho">Calculadora</h2>
</div>
<div class="campo">
<label>Valor 1:</label>
<input type="text" id="txtValor1" />
</div>
<div class="campo">
<label>Valor 2:</label>
<input type="text" id="txtValor2" />
</div>
<div class="campo">
<label>Operação:</label>
<select name="cbxOperacao" id="cbxOperacao">
<option value="+">Adição</option>
<option value="-">Subtração</option>
<option value="/">Divisão</option>
<option value="*">Multiplicação</option>
</select>
</div>
<div class="botao">
<button type="button" onclick="calcularValores()">Calcular</button>
</div>
<div class="campo">
<label>Resultado:</label>
<span class="resultado" id="txtResultado">-</span>
</div>
</form>
</div>
</body>
</html>