Every website needs a home where all its files can live. It enables people to access those files from anywhere in the world. These files live on a computer which is called server that is connected to internet all the time in order for other to access it anytime and anywhere they want.
To make it more simple and understandable a web hosting server is an actual home for your website to live on, and a domain name is the address to your home and it’s as simple as that.
Technically for others to reach your home (Website) they must have your address as well (Domain) therefore other to access our website we need a web hosting (Server) and a address (Domain Name)