You can write code to access the weather API, or you can simply use these (free) weather widgets
(provided by tomorrow.io) that can be inserted into any web page.
Limited styling options out of the box, but available in both light and dark themes.
If you would rather have complete control over the look and feel of your own widgets,
you can access the API when you sign up for a (free) account at app.tomorrow.io