-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (40 loc) · 1.54 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
56
57
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<style>
body {
background-color: #000000;
}
h1 {
color:#6D734D;
text-shadow:#ffffff 1px 0 10px;
}
</style>
</head>
<body>
<header>
</header>
<main>
<h1>Class 1 Lab</h1>
<p id="p1" style="color:#f5f5f5;background-color:#72736F;font-size:large;">What is your name?</p>
<p id="p2" style="color:#72736F;background-color:#E8F4A4;font-size:larger;">What is your favorite food?</p>
<p id="p3" style="color:#dff84f;background-color:#F0F1EA;font-size:x-large;">Where are you from?</p>
<p id="p4" style="color:#F0F1EA;background-color:#6D734D;font-size:xx-large;">How old are you?</p>
</main>
<script>
let name = prompt('What is your name?');
console.log('User name: ' + name);
let food = prompt('What is your favorite food?');
console.log('Favorite food: ' + food);
let hood = prompt('Where are you from?');
console.log('Hometown: ' + hood);
let age = prompt('How old are you?');
console.log('Age: ' + age);
alert("Hello " + name + ". If that is your real name... I have some " + food + " here in my bag for you. I don't know if you'll like it. I may not have prepared it they way they do in " + hood + ". But you're only " + age + "years old. So you probably don't care too much. K'bye");
</script>
<footer>
</footer>
</body>
</html>