Files
week2-day2/index.html
2026-04-07 17:17:38 +00:00

26 lines
543 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Day 2 JS</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Check Voting Eligibility</h1>
<input type="number" id="ageInput" placeholder="Enter your age">
<br><br>
<button onclick="checkAge()">Check</button>
<h2 id="result"></h2>
</div>
<script src="script.js"></script>
</body>
</html>