|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>General Knowledge Quiz</title> |
| 7 | + <link rel="stylesheet" href="style.css"> |
| 8 | +</head> |
| 9 | +<body> |
| 10 | + <div class="quiz-container"> |
| 11 | + <h1>General Knowledge Quiz</h1> |
| 12 | + <form id="quiz-form"> |
| 13 | + <div class="question"> |
| 14 | + <p>1. What is the capital of France?</p> |
| 15 | + <input type="radio" name="q1" value="a" id="q1a"><label for="q1a"> Berlin</label><br> |
| 16 | + <input type="radio" name="q1" value="b" id="q1b"><label for="q1b"> Madrid</label><br> |
| 17 | + <input type="radio" name="q1" value="c" id="q1c"><label for="q1c"> Paris</label><br> |
| 18 | + <input type="radio" name="q1" value="d" id="q1d"><label for="q1d"> Rome</label><br> |
| 19 | + </div> |
| 20 | + <!-- Repeat for other questions --> |
| 21 | + <div class="question"> |
| 22 | + <p>2. Which planet is known as the Red Planet?</p> |
| 23 | + <input type="radio" name="q2" value="a" id="q2a"><label for="q2a"> Earth</label><br> |
| 24 | + <input type="radio" name="q2" value="b" id="q2b"><label for="q2b"> Mars</label><br> |
| 25 | + <input type="radio" name="q2" value="c" id="q2c"><label for="q2c"> Jupiter</label><br> |
| 26 | + <input type="radio" name="q2" value="d" id="q2d"><label for="q2d"> Saturn</label><br> |
| 27 | + </div> |
| 28 | + |
| 29 | + <!-- Continue adding questions here --> |
| 30 | + <div class="question"> |
| 31 | + <p>3. Who wrote 'To Kill a Mockingbird'?</p> |
| 32 | + <input type="radio" name="q3" value="a" id="q3a"><label for="q3a"> Harper Lee</label><br> |
| 33 | + <input type="radio" name="q3" value="b" id="q3b"><label for="q3b"> J.K. Rowling</label><br> |
| 34 | + <input type="radio" name="q3" value="c" id="q3c"><label for="q3c"> Ernest Hemingway</label><br> |
| 35 | + <input type="radio" name="q3" value="d" id="q3d"><label for="q3d"> Mark Twain</label><br> |
| 36 | + </div> |
| 37 | +<div class="question"> |
| 38 | + <p>4. What is the largest ocean on Earth?</p> |
| 39 | + <input type="radio" name="q4" value="a" id="q4a"><label for="q4a"> Atlantic Ocean</label><br> |
| 40 | + <input type="radio" name="q4" value="b" id="q4b"><label for="q4b"> Indian Ocean</label><br> |
| 41 | + <input type="radio" name="q4" value="c" id="q4c"><label for="q4c"> Arctic Ocean</label><br> |
| 42 | + <input type="radio" name="q4" value="d" id="q4d"><label for="q4d"> Pacific Ocean</label><br> |
| 43 | +</div> |
| 44 | +<div class="question"> |
| 45 | + <p>5. What is the smallest country in the world?</p> |
| 46 | + <input type="radio" name="q5" value="a" id="q5a"><label for="q5a"> Monaco</label><br> |
| 47 | + <input type="radio" name="q5" value="b" id="q5b"><label for="q5b"> Vatican City</label><br> |
| 48 | + <input type="radio" name="q5" value="c" id="q5c"><label for="q5c"> San Marino</label><br> |
| 49 | + <input type="radio" name="q5" value="d" id="q5d"><label for="q5d"> Liechtenstein</label><br> |
| 50 | +</div> |
| 51 | +<div class="question"> |
| 52 | + <p>6. What is the chemical symbol for gold?</p> |
| 53 | + <input type="radio" name="q6" value="a" id="q6a"><label for="q6a"> Au</label><br> |
| 54 | + <input type="radio" name="q6" value="b" id="q6b"><label for="q6b"> Ag</label><br> |
| 55 | + <input type="radio" name="q6" value="c" id="q6c"><label for="q6c"> Hg</label><br> |
| 56 | + <input type="radio" name="q6" value="d" id="q6d"><label for="q6d"> Fe</label><br> |
| 57 | +</div> |
| 58 | +<div class="question"> |
| 59 | + <p>7. Who painted the Mona Lisa?</p> |
| 60 | + <input type="radio" name="q7" value="a" id="q7a"><label for="q7a"> Vincent van Gogh</label><br> |
| 61 | + <input type="radio" name="q7" value="b" id="q7b"><label for="q7b"> Pablo Picasso</label><br> |
| 62 | + <input type="radio" name="q7" value="c" id="q7c"><label for="q7c"> Leonardo da Vinci</label><br> |
| 63 | + <input type="radio" name="q7" value="d" id="q7d"><label for="q7d"> Claude Monet</label><br> |
| 64 | +</div> |
| 65 | +<div class="question"> |
| 66 | + <p>8. What is the main ingredient in guacamole?</p> |
| 67 | + <input type="radio" name="q8" value="a" id="q8a"><label for="q8a"> Tomatoes</label><br> |
| 68 | + <input type="radio" name="q8" value="b" id="q8b"><label for="q8b"> Onions</label><br> |
| 69 | + <input type="radio" name="q8" value="c" id="q8c"><label for="q8c"> Avocados</label><br> |
| 70 | + <input type="radio" name="q8" value="d" id="q8d"><label for="q8d"> Peppers</label><br> |
| 71 | +</div> |
| 72 | +<div class="question"> |
| 73 | + <p>9. What is the longest river in the world?</p> |
| 74 | + <input type="radio" name="q9" value="a" id="q9a"><label for="q9a"> Nile</label><br> |
| 75 | + <input type="radio" name="q9" value="b" id="q9b"><label for="q9b"> Amazon</label><br> |
| 76 | + <input type="radio" name="q9" value="c" id="q9c"><label for="q9c"> Yangtze</label><br> |
| 77 | + <input type="radio" name="q9" value="d" id="q9d"><label for="q9d"> Mississippi</label><br> |
| 78 | +</div> |
| 79 | +<div class="question"> |
| 80 | + <p>10. Who discovered penicillin?</p> |
| 81 | + <input type="radio" name="q10" value="a" id="q10a"><label for="q10a"> Louis Pasteur</label><br> |
| 82 | + <input type="radio" name="q10" value="b" id="q10b"><label for="q10b"> Marie Curie</label><br> |
| 83 | + <input type="radio" name="q10" value="c" id="q10c"><label for="q10c"> Alexander Fleming</label><br> |
| 84 | + <input type="radio" name="q10" value="d" id="q10d"><label for="q10d"> Gregor Mendel</label><br> |
| 85 | +</div> |
| 86 | + |
| 87 | + <!-- Add more questions up to 10 here --> |
| 88 | + <button type="button" onclick="submitQuiz()">Submit Quiz</button> |
| 89 | + </form> |
| 90 | + <div id="result"></div> |
| 91 | + </div> |
| 92 | + <script src="script.js"></script> |
| 93 | +</body> |
| 94 | +</html> |
0 commit comments