-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (75 loc) · 4.52 KB
/
Copy pathindex.html
File metadata and controls
85 lines (75 loc) · 4.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!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>Quiz</title>
<link rel="stylesheet" href="quiz.css">
</head>
<body>
<h1>Computer Quiz</h1>
<div id="container">
<form action="/" id="form" method="post" name="quiz">
<div class="input">
<p>Q1) Who invented Computer?</p>
<input type="button" value="Newton" id="Newton" class="wrong" name="ans1" onclick="quiz.place_for_ans1.value = 'Newton'">
<input type="button" value="Charles" id="Charles" class="right" name="ans1" onclick="quiz.place_for_ans1.value = 'Charles'">
<input type="button" value="Stephen" id="Stephen" class="wrong" name="ans1" onclick="quiz.place_for_ans1.value = 'Stephen'">
<input type="button" value="Einstien" id="Einstien" class="wrong" name="ans1" onclick="quiz.place_for_ans1.value = 'Einstien'"><br>
<input type="text" id="place_for_ans1" name="ans_of_ans1" value=" ">
<br>
</div>
<div class="input">
<p>Q2) Who created python language?</p>
<div class="option">
<input type="button" value="Brendan" id="Brendan" class="wrong" name="ans1" onclick="quiz.place_for_ans2.value = 'Brendan'">
<input type="button" value="Dennis" id="Dennis" class="wrong" name="ans1" onclick="quiz.place_for_ans2.value = 'Dennis'">
<input type="button" value="Guido" id="Guido" class="right" name="ans1" onclick="quiz.place_for_ans2.value = 'Guido'">
<input type="button" value="James" id="James" class="wrong" name="ans1" onclick="quiz.place_for_ans2.value = 'James'"> <br>
<input type="text" id="place_for_ans2" name="ans_of_ans2" value=" ">
<br>
</div>
</div>
<div class="input">
<p>Q3) Who created Javascript language?</p>
<div class="option">
<input type="button" value="Guido" id="Guido" class="wrong" name="ans1" onclick="quiz.place_for_ans3.value = 'Guido'">
<input type="button" value="Dennis" id="Dennis" class="wrong" name="ans1" onclick="quiz.place_for_ans3.value = 'Dennis'">
<input type="button" value="James" id="James" class="wrong" name="ans1" onclick="quiz.place_for_ans3.value = 'James'">
<input type="button" value="Brendan" id="Brendan" class="right" name="ans1" onclick="quiz.place_for_ans3.value = 'Brendan'"><br>
<input type="text" id="place_for_ans3" name="ans_of_ans3" value=" ">
<br>
</div>
</div>
<div class="input">
<p>Q4) Who created Java language?</p>
<div class="option">
<input type="button" value="Guido" id="Guido" class="wrong" name="ans1" onclick="quiz.place_for_ans4.value = 'Guido'">
<input type="button" value="Dennis" id="Dennis" class="wrong" name="ans1" onclick="quiz.place_for_ans4.value = 'Dennis'">
<input type="button" value="James" id="James" class="right" name="ans1" onclick="quiz.place_for_ans4.value = 'James'">
<input type="button" value="Brendan" id="Brendan" class="wrong" name="ans1" onclick="quiz.place_for_ans4.value = 'Brendan'"> <br>
<input type="text" id="place_for_ans4" name="ans_of_ans4" value=" ">
<br>
</div>
</div>
<div class="input">
<p>Q5) Who created C language?</p>
<div class="option">
<input type="button" value="Guido" id="Guido" class="wrong" name="ans1" onclick="quiz.place_for_ans5.value = 'Guido'">
<input type="button" value="Dennis" id="Dennis" class="right" name="ans1" onclick="quiz.place_for_ans5.value = 'Dennis'">
<input type="button" value="Brendan" id="Brendan" class="wrong" name="ans1" onclick="quiz.place_for_ans5.value = 'Brendan'">
<input type="button" value="James" id="James" class="wrong" name="ans1" onclick="quiz.place_for_ans5.value = 'James'"> <br>
<input type="text" id="place_for_ans5" name="ans_of_ans5" value=" ">
<br>
</div>
</div>
<div>
<input type="text" id="name" name="identity" placeholder="Enter your Name">
<p id="result" name='result'>Know your result</p>
</div>
</form>
</div>
<script src="index.js"></script>
</body>
</html>