-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasic_HTML_3.html
More file actions
30 lines (26 loc) · 898 Bytes
/
Copy pathBasic_HTML_3.html
File metadata and controls
30 lines (26 loc) · 898 Bytes
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>My first program</title>
<link rel="stylesheet" type="text/css" href="Basic_CSS_1.css">
</head>
<body>
<h1 class="font_1">Hello World! </h1>
<h2 class="font_2">Hello Galaxy!</h2>
<div style="color: rgb(255, 0, 0)">
<h2> Your div heading is here </h2>
</div>
<p> I have done this page </p>
<script>
var n1 = Number(window.prompt ( 'Type a number: ')) //string
var n2 = Number(window.prompt ('Type another number: '))//string
var s = n1 + n2
window.alert( "Both added equals " + s ) /* aqui cuidado.
number+number para adicao (Number)
string+string = para concatenação (String) */
</script>
</body>
</html>