Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather-website

Live link --> https://weatherss-app.netlify.app

HTML:

The HTML structure includes a container div with a heading, input field, button, and a div for displaying the weather result. The JavaScript file is linked at the end of the body.

CSS:

Basic styles for the body, container, heading, input field, button, and weather result are defined. The layout is centered with a white background for the container.

JavaScript:

An event listener is added to the button, which triggers a function to fetch weather data when clicked. The fetch API is used to get weather data from OpenWeatherMap. The weather information is displayed in the weatherResult div if the city is found; otherwise, an error message is shown.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages