What is Domain and hosting : Domain is the address of your website that people type in the browser to visit your website in simpler words it is like an address to your website, Internet contains millions and billions of website and everyday new website are being added to it, to easily identify them and to easily reach to them computer assigns a series of number to every website which is different for every website called IP address which typically includes numbers separated by dots, computer have no problem identifying and remembering this number but humans on the other hand have a lot of problem so solve this problem domains were invented domain name have words instead of number which makes it easier to remember for example example Google.co.in is a domain registered by Google which will directly address you to google web page there are a lot of domains registered by Google cause people sometime misspell which may lead them to another different website but Google has a lot of domains registered for the same website so if you mistype some alphabets you will still land on Google website.
Web hosting is where all the files of your websites a present if the domain is like an address to your website then web hosting is the actual house that leads us to all the websites on the Internet that need web hosting. Web hosting means storing and serving the website, in simpler words, think of it as a box containing all the files to your website, which then can be retrieved as per your usage. Domain and web hosting are two very different services, but two of the most important services required to make a website possible are constantly updating domain name. Behind each domain name, there is an address of web hosting service storing the website’s file.
For building a website you will need both a domain name and a web hosting account, you need to buy the domain name which is like a subscription for a year you have to pay some money to keep that domain to yourself constantly. You can buy a domain name and register your domain name from ah company providing these services after that you’ll have the right to use it in any way you want. You can also buy several domains for the same website like big multinational companies do. Several companies are providing these services like godaddy.com etc.