| Level Navigation: 1 | Current Level: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
Goal: Create the necessary files and include scripts in your HTML.
Your project folder should contain these files:
my-weather/
├── index.html
├── script.js
├── helpers.js
└── README.md
Open index.html and add this basic structure:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Weather App</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-4">
<h1>Weather App</h1>
<!-- Your weather card will go here in the next step -->
</div>
<!-- Include your JavaScript files -->
<script src="helpers.js"></script>
<script src="script.js"></script>
</body>
</html>
Creating the proper file structure establishes the foundation for your weather app. The HTML file serves as the user interface, the JavaScript files contain the app logic and helper functions, and the README documents your project. This organization follows web development best practices and makes your code maintainable and easy to understand for other developers.
📚 Need help with helper functions? Check out our Helpers Guide for detailed instructions on downloading, setting up, and using the helper functions like
setText()that you’ll need for this project.
index.html contains the basic HTML structurehelpers.js and script.js are included at the bottom of the bodyReady for the next step? Continue to Step 3: Copy Weather Data
| Level Navigation: 1 | Current Level: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |