-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex005.html
47 lines (40 loc) · 1.37 KB
/
ex005.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">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Primeiro passo estudos com Dom</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<style>
body{
background-color: rgb(42, 42, 107);
color: wheat;
font: normal 18pt Arial;
}
</style>
</head>
<body>
<h1>Iniciando estudos com DOM</h1>
<p>Aqui vai o resultado</p>
<p>Apredendo usar <strong>DOM</strong> em JavaScript</p>
<div id="msg">Clique em mim</div>
<script>
/* var d = window.document.querySelector('div#msg')
d.style.color = 'blue'*/
/* var d = window.document.querySelector('div#msg')
d.style.color = 'black'*/
/*var d = window.document.querySelector('div#msg')
d.style.color = 'pink'*/
/*var d = window.document.querySelector('div#msg')
d.style.color = 'blue'*/
/*var e = window.document.querySelector('div#msg')
e.style.color = 'black'*/
/*var i = window.document.querySelector('div#msg')
i.style.color = 'blue'*/
var d = window.document.querySelector('div#msg')
d.style.color = 'blue'
d.style.background = 'black'
</script>
</body>
</html>