-
Notifications
You must be signed in to change notification settings - Fork 0
/
challenge02.html
37 lines (32 loc) · 1015 Bytes
/
challenge02.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: ID changer</title>
<style>
#id-card {
border:1px solid black;
border-radius:5px;
width: 400px;
font-family: monospace;
padding: 6px;
background: rgb(201, 255, 224);
}
#id-name {
float: right;
}
</style>
</head>
<body>
<div id="id-card">
<h3>Khan Academy identification card</h3>
<img src="https://www.kasandbox.org/programming-images/creatures/Winston.png">
<h1 id="id-name">First last</h1>
</div>
<script>
var heading= document.getElementById('id-name');
console.log(heading)
heading.innerHTML='Salima Rabiu'
</script>
</body>
</html>