Web Hosting is a service that comprises of computing resources such as disk space, CPU, memory, etc. which allows for the files of a website to be stored and accessed publicly on the Internet.
Like land in real estate, Web Hosting provides you the space on which you can store and build your website. Things such as text, images, databases, videos, emails, etc. A domain name is similar to a street address, which allows visitors to find your website. Your websites files need to be stored and accessible on a server and web hosting provides you with that ability