Fiume più lungo del mondo







Quiz: Fiume più lungo del mondo

.quiz-container { max-width: 600px; margin: auto; padding: 20px; border: 1px solid #ccc; border-radius: 10px; background-color: #f9f9f9; position: relative; } .quiz-question { margin-bottom: 20px; } .quiz-image { margin-bottom: 10px; } .quiz-options { list-style-type: none; padding: 0; } .quiz-options li { margin-bottom: 10px; } .correct { color: green; font-weight: bold; } .incorrect { color: red; } .quiz-result { display: none; } .score { position: absolute; bottom: 10px; right: 10px; font-size: 1.2em; font-weight: bold; }

let correctAnswers = 0;

function checkAnswer(question, correctOption) { var options = document.getElementsByName(question); var userCorrect = false; for (var i = 0; i { document.getElementById(question + '-next').style.display = 'inline'; }, 2000); updateScore(); }

function showNextQuestion(currentQuestion, nextQuestion) { document.getElementById(currentQuestion).style.display = 'none'; document.getElementById(nextQuestion).style.display = 'block'; }

function updateScore() { document.getElementById('score').textContent = `${correctAnswers}/5`; }

function restartQuiz() { location.reload(); // Ricarica la pagina }

Quiz: Fiume più lungo del mondo

Copertina del quiz

Domanda 1: Qual è il fiume più lungo del mondo?

  • Il Nilo
  • Il Rio delle Amazzoni
  • Il Mississippi
  • Il Yangtze


0/5