-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (70 loc) · 2.27 KB
/
index.html
File metadata and controls
98 lines (70 loc) · 2.27 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!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>CodeCarePractice</title>
<style>
main{
background-color: #f8eefc;
}
#logoName {
text-align: center;
}
#firstQus {
color: #d14030;
background-color: #fa9084b6;
}
#secondQus {
color: #5ed130;
background-color: #b0f196b9;
}
#thirdQus {
color: #3073d1;
background-color: #9dc2f5b7;
}
#fourthQus {
color: #d19e30;
background-color: #f7e0afc2;
}
</style>
</head>
<body>
<header>
<h1 id="logoName">Code care</h1>
<nav>
<ul>
<li><a href="">Home</a></li>
<li><a href="">Tips</a></li>
<li><a href="">About us</a></li>
</ul>
</nav>
</header>
<main>
<h1>Class 1 lab</h1>
<p>We will track your health while learning also will give you some tips for cool learning experince <br></p>
<p>We would like to collect some information about you :)</p><Br>
<p id="firstQus">what is your name ?</p>
<p id="secondQus">how many months you have been learning coding?</p>
<p id="thirdQus">how old are you?</p>
<p id="fourthQus">how many hours per day you spend infornt of laptop?</p>
</main>
<footer>
© SARAALSHATER
</footer>
<script>
let userName=prompt('What is your name ?');
console.log(userName);
let codingExperince=prompt('How many months you have been learning coding?');
console.log(codingExperince);
let age=prompt('How old are you?');
console.log(age);
let hours=prompt('How many hours per day you spend infornt of laptop?');
console.log(hours);
alert('Hey '+ userName + ' You have been learning coding since ' + codingExperince + ' months ');
alert('You spend ' + hours + ' infront of the laptop everyday');
alert('You are still '+ age + ' ,so please dont forget to take care of your physical and mental health :)');
</script>
</body>
</html>