How Does Website works

Janani AsokanJanani Asokan
3 min read

A website is a collection of web pages that are accessible via the internet. You can access the web pages (Webpage is a single document or file) using URL or domain name of a particular website. Collection of web pages make up a website.

URL to access the webpages:

If you enter the URL of the particular website, client (you) is requested directly accessing the web server specified in the URL. The request may be protocol (HTTP or HTTPs), domain name or the path to the specific webpage.

Domain Name to access the webpages:

If you enter the domain name in your web browser, your browser sends a request to Domain Name System server to resolve the domain name to the IP address. It does not send the request directly to webserver. Once the DNS server responds with the IP address associated with the domain name, your web browser then sends a request directly to the website server using the IP address to access the webpage.

Why do we need to use websites?

websites are accessible on any device with an internet connection and do not require installation or updates. They can also be easily shared and accessed by anyone with a web browser, making them a more inclusive and democratic option.

How does the website work?

  1. Client sends a request to the webserver by entering the URL

  2. The website's server receives the request and searches for the requested web page.

  3. If the requested web page is found, the server sends the web page content back to the browser in the form of HTML, CSS, and JavaScript files.

  4. The browser then renders the HTML, applies the CSS styling, and executes any JavaScript code, which creates the final website layout and functionality.

  5. The website's server may also interact with databases, files, and other resources to generate dynamic content and respond to user input.

Overall, a website is a combination of web technologies, including HTML, CSS, JavaScript, and server-side programming (python, PHP, Ruby) that work together to deliver content to the user's web browser.

Why do most of the websites use cookies?

Cookies are used on websites to store information on a user's computer or device. They are small text files created by a website and stored on the user's browser.

Cookies are typically used for the following purposes:

Session Management: This allows the website to remember who the user is and what they have done on the website, for example on the ecommerce website what item people had added to the cart.

Personalization: Cookies can be used to personalize the user experience on a website, such as remembering their preferred language or theme.

Tracking: Cookies can be used to track user behavior on a website, such as which pages they visit and what actions they take.

Advertising: Cookies can be used to serve targeted advertising to users based on their browsing history and interests.

Overall, cookies are an important part of many websites and are used for a variety of purposes.

How does the website know your IP Address?

When you enter a website's domain name or URL into your web browser, your browser sends a request to the website's server asking for the webpage to be displayed. This request includes your IP address, which the server uses to send the webpage back to your device.

The server can then use your IP address to gather information about your location, internet service provider, and other details related to your network connection.

To create website, we need to have

1. Domain Name (unique address to your website)

2. Content Management System (CMS): It is a software application used to manage, create or publish the content on the website.

3. Design and Layout

4. Front-end Development and Back-end Development.

5.Search Engine Optimization (improve the visibility and ranking on search engines)

0
Subscribe to my newsletter

Read articles from Janani Asokan directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Janani Asokan
Janani Asokan