When we use a smartphone, we store our data such as songs, phone numbers, pictures on a memory card or SD card. Then, the way the website works is similar. Every website remains stored in the server or host, and the domain name is indicated to the IP of that hosting server.
When we go to the browser and enter the website name in its address bar, the name that is associated with an IP address points to the IP of the DNS (Domain Name System) host server and the website made with the DNS name we want to open All of its data from the server is visible to us in front of us and in this way we are able to view a website in the browser.