Untitled

 avatar
unknown
plain_text
a year ago
2.4 kB
3
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Year 9 Basic Science Flashcards</title>
    <style>
        .flashcard {
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 20px;
            margin: 10px;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            transition: transform 0.2s;
        }
        .flashcard:hover {
            transform: scale(1.05);
        }
        .answer {
            display: none;
        }
        .flashcard.show .answer {
            display: block;
        }
        .flashcard.show .question {
            display: none;
        }
    </style>
</head>
<body>

<div class="flashcard" onclick="this.classList.toggle('show')">
    <div class="question">What is the chemical formula for water?</div>
    <div class="answer">H<sub>2</sub>O</div>
</div>

<div class="flashcard" onclick="this.classList.toggle('show')">
    <div class="question">Name the process by which plants make their food using sunlight.</div>
    <div class="answer">Photosynthesis</div>
</div>

<div class="flashcard" onclick="this.classList.toggle('show')">
    <div class="question">What is the powerhouse of the cell?</div>
    <div class="answer">Mitochondria</div>
</div>

<div class="flashcard" onclick="this.classList.toggle('show')">
    <div class="question">What is the formula for calculating speed?</div>
    <div class="answer">Speed = Distance / Time</div>
</div>

<div class="flashcard" onclick="this.classList.toggle('show')">
    <div class="question">What gas do plants take in for photosynthesis?</div>
    <div class="answer">Carbon Dioxide (CO<sub>2</sub>)</div>
</div>

<div class="flashcard" onclick="this.classList.toggle('show')">
    <div class="question">What is Newton's Third Law of Motion?</div>
    <div class="answer">For every action, there is an equal and opposite reaction.</div>
</div>

<script>
    // JavaScript to toggle the answer and question
    document.querySelectorAll('.flashcard').forEach(card => {
        card.addEventListener('click', () => {
            card.classList.toggle('show');
        });
    });
</script>

</body>
</html>
Editor is loading...
Leave a Comment