We know the GPIOs are on the Pi.
Where will be the HTTP server delivering the web page, where will be the wifi Access Point?
You can have everything on the Pi, but it is not mandatory.
(I'm not sure but I suspect gpiozero
is a good way to make your GPIO pins available through the network if you need to.)