Hosting is what is needed to display your website on the internet. It goes together with your domain name.
You have to have a domain name first, then hosting. Once you have those two items secured you can begin building your website. It’s always recommended that you keep your domain name and hosting together for easier maintenance and continuity.