-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (54 loc) · 2.26 KB
/
index.html
File metadata and controls
69 lines (54 loc) · 2.26 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
69
<!DOCTYPE html>
<html>
<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>class lab 1</title>
<style>
* {
margin: 20px;
}
h1 {
background-color: cornflowerblue;
text-align: center;
}
</style>
</head>
<body>
<header>
<h1>
Class 1 Lab
</h1>
</header>
<main>
<fieldset>
<legend>enter your info</legend>
<p style="background-color: rgb(141, 198, 218);color: rgb(100, 7, 7);font-size: 22px;"> what's your name ?
</p>
<p style="background-color: rgb(100, 181, 211);color: rgb(10, 70, 52);font-size: 22px;">how old are you ?
</p>
<p style="background-color: rgb(9, 71, 94);color: rgb(230, 168, 219);font-size: 22px;">what\'s your favorite
food ?</p>
<p style="background-color: rgb(6, 32, 41);color: rgba(245, 153, 153, 0.911);font-size: 22px;"> what\'s your
favourite drink ?</p>
</fieldset>
</main>
<footer>
</footer>
<script>
let userName = prompt("Enter your name")
let name = alert('your name is: ' + userName)
console.log(' what\'s your name is : ', userName);
let age = prompt("how old are you ?")
let ageAlert = alert("this your name " + userName + " and this your age " + age)
console.log("this your name " + userName + " and this your age " + age);
let food = prompt("what\'s your favorite food ?")
let foodAlert = alert("this your name " + userName + " and this your age " + age + " this the favorite food " + food)
console.log("this your name " + userName + " and this your age " + age + " this the favorite food " + food);
let drink = prompt("what\'s your favourite drink ?")
let drinkAlert = alert("this your name " + userName + " and this your age " + age + " this the favorite food " + food + " this the favorite drink " + drink)
console.log("this your name " + userName + " and this your age " + age + " this the favorite food " + food + " this the favorite drink " + drink);
</script>
</body>
</html>