Have you ever wondered how web pages works? Do you want to know about the science of web pages. Today everyone knows the term websites and webpages (Thats because website contain ocean of knowledge and do everything from informing a college term paper to sending a purchase straight to your doorstep.) but you might not know the science behind it. You use different social networking sites like facebook, twitter, google plus daily and even browse youtube to watch videos.
The browser acts as an interpreter behind the scenes, Markup language and scripting language which are written instructs browser to perform the required action like where to browse files and what to do next ,where to go and what to request.
Every thing that displays in the computer screen when we enter the url of any websites like techtach.com or google.com need to be stored in a computer. Like we store music, pictures, videos and document on our machine those files are also need to be stored in a very powerful computer with huge memory sized disks which are called servers. Just remember the whole website is stored in a server meaning they serve upon our request. Their main purpose is to store the content and deliver that content upon our request.
We need to buy the space on the server to build the website. Webhosting company like bluehost provide the space on the server to which we can upload the html, php files, image, videos, documents and other so that any one from anywhere on the world can view that website content or files.
Actually the computer uses the DNS server to lookup the domain name that we are browsing. There is another server named DNS (Domain Name Server) whose task is to resolve the domain name into an ip address. You may have save your friends phone number in a mobile phone with a name. for eg. say Harry +977-984-1222222. and you don’t dial a phone number directly because its hard to remember phone number in the contact list right?, instead you search the name and press dial key and the phone is dialed to his actual number but not name. Same thing happens in DNS, it maps the domains name to ip addresses from a massive database. Just remember DNS as a phone book, revealing the server ip address tied to a domain name.
And finally it reach to the actual server where the pages and files are stored and the server serves by delivering the right content to the browser.