-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (47 loc) · 1.79 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
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<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>Name Tag</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<div>
<input class='input' type='text' name='greeting' id='greeting-input'/>
<button class= 'button' id="submit2"> Update Greeting </button>
</div><br>
<div>
<input class='input' type='text' name='name' id='name-input'/>
<button class= 'button' id="submit"> Update Name </button>
</div><br>
<div>
<input class='input' id='colors' type='color'>
<button class= 'button' id="top-background"> Change Top Color </button>
</div><br>
<div>
<input class='input' type='color' id='colors2'/>
<button class='button' id='bottom-background'> Change Bottom Color</button>
</div><br>
<!-- <button id='font' class = "button" type='button' onclick = "display()">Choose Font</button>
<script>
function display() {
document.getElementById('font').style.fontFamily = "verdana , sans-serif";
}
</script> -->
<div id="name-tag" class="name-tag">
<section id="top-section" class="top">
<h1 id='greeting'>Hello</h1>
<h2>my name is</h2>
</section>
<section id="name-section" class="middle">
Joseph
</section>
<section id="bottom-section" class="bottom"></section>
</div>
</main>
<script type="module" src="index.js"></script>
</body>
</html>