I am trying to hide some images for my computer science project but it won't seem to work anyone know why?
Heres the HTML
<!DOCTYPE html>
<html>
<head>
<title>Fitness Programs</title>
<script src="script.js"></script>
</head>
<body>
<!-- program choices -->
<img src ="cardio.jpg" width ="350" height="200" id="cardio">
<img src ="hiit.jpg" width = "350" height="200" class="hiit">
<img src ="strength.jpg" width = "350" height="200" class="strength">
<img src ="toning.jpg" width = "350" height="200" class="toning">
</body>
</html>
Heres the Javascript
// hide images
document.getElementById("cardio").style.display = "none";
document.getElementById("hiit").style.display = "none";
document.getElementById("strength").style.display = "none";
document.getElementById("toning").style.display = "none";