A web hosting service makes available the web space on which to load the various contents to be displayed on the website in question and the associated services such as e-mail addresses, anti-spam and antivirus filters and the resources to execute scripts, CMS like WordPress or Joomla etc.
Normally one or more domain names are associated (but it is also possible to use only sub-domains such as secure.webhosting24.it etc.) to a web hosting service to make visible the contents saved in the web space made available on the internet available from the hosting provider (web hosting or host in English means and derives from “hosting”.
So in simple terms, registering a domain name means becoming the owner of a web address (such as “webhosting24.com”), while the (web) hosting service means buying the necessary space on one or more servers to be able to store all the files and contents of the site to be displayed on the domain name.