Exercício: Frases com o Verbo Être
body {
font-family: Arial, sans-serif;
margin: 20px;
padding: 20px;
background-color: #f9f9f9;
}
h1 {
color: #333;
}
.question {
margin-bottom: 20px;
}
input[type=”text”] {
padding: 5px;
width: 200px;
margin-right: 10px;
}
button {
padding: 5px 10px;
background-color: #007BFF;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
.result {
margin-top: 10px;
font-weight: bold;
}
Exercício: Complete as Frases com o Verbo Être
function checkAnswer(questionId, correctAnswer) {
const userAnswer = document.getElementById(questionId).value.trim().toLowerCase();
const resultElement = document.getElementById(`result-${questionId}`);
if (userAnswer === correctAnswer) {
resultElement.textContent = “Correct ! 🎉”;
resultElement.style.color = “green”;
} else {
resultElement.textContent = `Incorrect. La réponse correcte est “${correctAnswer}”.`;
resultElement.style.color = “red”;
}
}