A simple web page that fetches weather data from a free API and displays current conditions for any city. Teaches API calls, DOM manipulation, and basic UI design.
Follow these steps in order. Each one builds on the previous.
Create the HTML structure with a search form
Style the page with CSS flexbox
Sign up for a free OpenWeatherMap API key
Write the fetch() call to get weather data
Parse the JSON response and extract key fields
Display the data dynamically using DOM methods
Add the Celsius/Fahrenheit toggle button
Loading...