-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path201-lab01.html
More file actions
68 lines (57 loc) · 1.52 KB
/
201-lab01.html
File metadata and controls
68 lines (57 loc) · 1.52 KB
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
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
h1 {
color: blueviolet;
}
#question1 {
background-color: pink;
color: brown;
}
#question2 {
background-color: peachpuff;
color: red;
}
#question3 {
background-color: purple;
color: salmon;
}
#question4 {
background-color: chartreuse;
color: yellow;
}
</style>
</head>
<body>
<header>
</header>
<main>
<h1>Class 1 Lab</h1>
<script>
let name = prompt("What's your name?");
console.log(`name is: ${name}`)
let place = prompt("Where is worst place you've been?");
console.log(`place is: ${place}`)
let animal = prompt("What's your favorite animal?");
console.log(`animal is: ${animal}`)
let celebrity = prompt("Who is your favorite celebrity?");
console.log(`celebrity is: ${celebrity}`)
</script>
These are the questions that I'm asking:
<p id="question1">What's your name?</p>
<p id="question2">Where is worst place you've been?</p>
<p id="question3">What's your favorite animal?</p>
<p id="question4">Who is your favorite celebrity?</p>
<script>
document.write("Hi there " + name + ", I'm sorry about " + place + ":(<br>");
document.write("Did you know that " + celebrity + " once ate a " + animal + " ?")
</script>
</main>
<footer>
</footer>
</body>
</html>