Home network

does anyone know a lot about networking? i have an idea of a network i want to build but i’m not sure what the difference between a hub, switch and router is. Will this design work? or is there a better way to design it?

I would like to use the webserver to host files that can be accessed across the internet, including my personal homepage.

sorry if this is a complicated question!