I'm working on a form, and I want to include a checkbox that users can toggle. However, when I click the checkbox, nothing happens. It's like it's frozen.
This is my code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checkbox Conundrum</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form>
<label for="agree">Agree to Terms:</label>
<input type="checkbox" id="agree" name="agree">
<button type="submit">Submit</button>
</form>
<script src="script.js"></script>
</body>
</html>
Any idea why the checkbox isn't responding to clicks?