forked from SanjinDedic/WebQuiz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quiz.html
45 lines (45 loc) · 1.56 KB
/
quiz.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Computer Science Quiz</title>
<link rel="stylesheet" href="css/quiz.css">
</head>
<body>
<div class="main-container">
<div class="container" id="quiz-container">
<h1>Computer Science Quiz</h1>
<p id="score-display">Score: 0</p>
<div class="question-container">
<p id="question"></p>
<img id="question-image" src="" alt="Question related image" style="width: 50%; display: none;">
<div id="multiple_choice_options">
<div>
<input type="radio" name="option" value="a" id="option_a">
<label for="option_a" id="option-a"></label>
</div>
<div>
<input type="radio" name="option" value="b" id="option_b">
<label for="option_b" id="option-b"></label>
</div>
<div>
<input type="radio" name="option" value="c" id="option_c">
<label for="option_c" id="option-c"></label>
</div>
<div>
<input type="radio" name="option" value="d" id="option_d">
<label for="option_d" id="option-d"></label>
</div>
</div>
<div id="short_answer_input" class="hidden">
<input type="text" placeholder="Your answer" id="short_answer">
</div>
<button onclick="submitAnswer()">Submit</button>
</div>
<p id="result" class="hidden"></p>
</div>
</div>
<script src="js/quiz.js"></script>
</body>
</html>