Webhosting is a service that allows you to put your website on the internet. The webhosting provider owns and manages the servers on which these pages are stored. When someone wants to visit your website, they type an address known as a domain into their browser. A domain is an Internet address that directs visitors to your website through a DNS A record.
So a domain is what people use to find your website, while webhosting is the service that allows you to store and make the content of that page available on the internet. Website content usually includes text, images, videos and other files.