The Wayback Machine - https://web.archive.org/web/20241128011237/https://www.geeksforgeeks.org/web-browser-engine-definition-working/
Open In App

Web Browser Engine - Definition & Working

Last Updated : 04 Mar, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

A web browser is a software application that lets you explore the internet. It retrieves and displays web pages, images, videos, and other content from web servers. Each piece of content has a unique address called a URL (Uniform Resource Locator), which tells the browser where to find it.

While we often focus on the browser itself (Chrome, Firefox, Edge, etc.), each choice also determines the underlying browser engine and rendering engine. These core components work together to create the web experience we see. Though sometimes used interchangeably, they have distinct roles. Here, In this article, we are going to study the browser engine and how it works under the hood.

What is a Browser Engine?

Think of a browser engine as the heart of your web browser. It is the essential software that acts as a bridge between the web page's code (HTML, CSS, JavaScript) and the visual experience you see on your screen. Here's what it does:

  • Starts the Process: The browser engine handles the initial request to load a web page and coordinates the resources needed.
  • Navigation: It manages your browsing actions – things like going back, forward, or reloading.
  • Error Handling: The browser engine gracefully displays error messages if something goes wrong.
  • Visual Layout: It works behind the scenes, using HTML and CSS to calculate the precise position and appearance of every element on the page.

Types of Browser Engine:

As we have talked earlier there are many web browsers and each of them uses different types of Browser engines. Here we will see some of the browser engines that are majorly used in most popular web browsers.

1. WebKit:

WebKit engine is the most popular and most used engine it was created by Apple for its Safari Browser by forking the KHTML engine of KDE project. Later that, Google also used the same WebKit engine of its chrome browser but eventually, a modified version of this engine was forked by the Blink engine.

2. Gecko:

Gecko is the Mozilla's engine which is used in many different types of Firefox Browsers, the Thunderbird email client and SeaMonkey internet suite. It is licensed as Mozilla Public and Goanna is also a fork version of Gecko which is used in the Pale Moon, Basilisk and K-meleon Browsers.

3. Blink:

All the modern web browsers that are based on chromium browser use the Blink engine. On this engine many other applications are built onto it like CEF, Electron or any other framework that is based on chromium.

4. Servo:

To take the advantage of the memory safety properties and concurrency features of the Rust programming languages servo was developed as the experimental browser engine. This experimental project was initiated and lead by the Mozilla Research with the support from Samsung to port it to Android devices and ARM processors.

5. Trident and EdgeHTML:

Both of these engines are developed and maintained by the tech giant Microsoft. The famous Internet Explorer was built using the Trident engine. Formerly Edge Browser uses the EdgeHTML though now uses the Blink engine.

Quick Overview of Different Types of Web Browser

Engine

Developers

Browsers

Notes

WebKit

Apple

Safari, Chrome (until 2013), many Chromium-based browsers

Known for its speed and rendering capabilities. Forms the basis for many modern browsers

Gecko

Mozilla

Firefox, Thunderbird, SeaMonkey

Emphasizes adherence to web standards

Blink

Google (Fork of WebKit)

Chrome, Edge (since 2019), most modern Chromium-based browsers

Focuses on performance and Features

Servo

Mozilla Research (Experimental)

None (Under Development)

Explores the potential of Rust for safety and parallelism in browser engines

Trident

Microsoft

Internet Explorer

Legacy engine for Internet Explorer

EdgeHTML

Microsoft

Edge (until 2019)

Successor of Trident, now replaced by Blink

How does browser engine work?

Browser Engine is like a translator which turns your raw code into a beautifully laid out page of text and visual graphics which you will be able to understand easily and it is the most important component of the browser. Browser engines are the main reason that a web pages look, load, work different in different browsers. We will understand the working of Browser Engine in steps so that we can easily understand it. Now, let's look at some steps that involved in rendering the web page.

  1. Whenever the user pass some URL from the User Interface the browse engine receives the URL and it sends the request to the networking component which handles the communication with the web server and retrives the HTML document and other resources like images, videos, text, stylesheets, script etc.
  2. After retrieving the HTML document the browser engine passes it to the rendering engine, which parses it and constructs a tree-like data structure called Document Object Mode (DOM). The DOM simply represents the logical structures and content of the web page in a tree like structure.
  3. Whenever the browser engine computed the styles, it takes the DOM and the computed style and pass it to the Layout engine that uses various algorithms to handle each element of the DOM and draw a box that holds the content and apply all the style that are instructed.
  4. After the completion of layout, the engine makes a blueprint of the web page into part you usually see on the screen. This whole process is known as Painting. Every box that was defined by the layout engine get drawn of painted on the screen and user finally sees the complete web page. It also executes any scripts that are attached to the web page, which may modify the DOM or perform other actions, such as adding interactivity or animation.

All the above steps discussed do not necessarily happen in sequential or discrete it may happen that the process overlap or run in parallel it all depends on the implementation of the browser engine and the rendering engine. That's the main reason why we see different visual representations or behaviors of same web page in different browsers.



Previous Article
Next Article

Similar Reads

Opera Browser Vs Brave Browser
Selecting the right web browser is essential for a seamless online experience. Opera and Brave are two popular browsers, each offering unique features and functionalities. This article provides an in-depth comparison of Opera and Brave, covering various aspects such as performance, features, security, privacy, user interface, compatibility, and mor
4 min read
Opera Browser vs Chrome Browser
Selecting the right web browser is essential for a seamless online experience. Opera and Chrome are two widely-used browsers, each offering distinct features and functionalities. This article provides an in-depth comparison of Opera and Chrome, covering various aspects such as performance, features, security, privacy, user interface, compatibility,
4 min read
Opera Browser Vs Microsoft Edge Browser
Choosing the right web browser is crucial for a seamless online experience. Opera and Microsoft Edge are two popular choices, each offering unique features and functionalities. This article provides an in-depth comparison of Opera and Microsoft Edge, covering various aspects such as performance, features, security, privacy, user interface, and comp
5 min read
Action on non working plugins in Google Chrome Browser
Google Chrome is one of the top web browsers for searching for essential information from any corner of the world. To enhance the browsing experience and accessibility and get more accurate results, we install plugins to the browser. Over time, these plugins begin lagging and throw disruption events. If the plugin is not working properly it’s bette
4 min read
Working of Tor Browser
The Tor Browser is like a secret agent for your internet-related activities which helps you browse the web without revealing your identity. It is like wearing an invisible cloak online, that is what the Tor Browser does for your privacy. In this article, Let us understand the workings of the Tor browser step by step by exploring its features, the b
4 min read
What is Tor Browser ? - Definition, Functionalities & Disadvantages
It is very important to protect our personal identity and personal information when we browse on internet as it may increase risk and threats online. people often face many security and privacy issues when they browse on the internet. Many companies buy user data and misuse it in different ways. They collect all the browsing data and use it to show
6 min read
Functions and Features of a Web Browser
What is a Web Browser?In simple words, a web browser is an application through which we can access websites on the World Wide Web (www). It provides users a medium using which they can interact with a web server as it fetches the data and displays it as a web page. We always use Chrome for browsing websites in our daily lives. Well, Chrome is one o
5 min read
Sending Web API requests using Network Console Tool in Microsoft Edge Browser
Application programming interface testing, sometimes known as API testing, is a subset of software testing that focuses on evaluating the interactions between various APIs and specific API functions. We can test the API in many ways such as accessing the endpoints through the Postman, browser, etc. One of the most common methods we use is sending w
3 min read
How do web browser handle tab and multiple windows?
Web browsers are sophisticated software applications designed to enable users to access and interact with information on the internet. One of the key features that enhance user experience is the ability to handle multiple tabs and windows. This functionality allows users to navigate between different web pages and tasks seamlessly. Tabs: Tabs are a
4 min read
Web Browser
When we need any kind of information most of the time we get help from the Internet, and we get information. The Internet provides us with useful information easily. We use mobile phones, computers, and tablets. We search for a lot of things in our daily lives, so we get information about all over the world, but we can not get information by just o
4 min read
Web Capture Tabs in Apple Safari Browser
If you are a Mac user, you probably already know the use of Shift+Command+3 to capture the screenshot of the current screen and Shift+Command+5 to capture the screenshot of a selected region on the current screen. But chances are, you don't know how to take a scrolling screenshot of an entire webpage. If this is true, then you have come to the righ
4 min read
Which is the best Web Browser of 2024?
The Best Browser of 2024 is Google Chrome However, there is no definitive answer to this question, as different browsers may have different strengths and weaknesses in terms of speed, performance, security, privacy, compatibility, and features. Some of the web browsers that are often mentioned as the best in various sources are Google Chrome, Micro
1 min read
Keyboard Shortcuts for all Web Browser
Are you tired of fumbling with your mouse or touchpad while browsing? Wish you could zip through common web tasks with just a few keystrokes? Get ready to streamline your browsing experience with these universal keyboard shortcuts, guaranteed to work across all major web browsers. Navigating the WebCtrl + T: Open a new browser tab – an absolute bre
3 min read
How to Change the Home Page of Web Browser?
The homepage of a web browser is the first page you see when you open the browser or click on the home button. Typically, it's set to a default page, but you have the option to change it to any website you like. Customizing your homepage lets you tailor your browsing experience and easily access your favorite website or search engine every time you
4 min read
Best Tor Browser Alternative for Risk-Free Web Surfing
Tor Browser is renowned for its exceptional anonymity and privacy features and remains a go-to solution for those seeking to evade surveillance and maintain confidentiality online. However, despite its numerous advantages, there might be instances where users prefer alternative solutions offering distinct features or compatibility with specific dev
5 min read
How to block online tracking and ads in a Web Browser?
Tracking and personalized ads have become a regular part of online browsing time. Websites and advertisers track our actions to collect data for targeted advertising and other purposes. To tackle it, there are methods to prevent online tracking and ads in your web browser in order to safeguard your privacy and improve your browsing experience. Bene
3 min read
How to sync data between different devices using a web browser?
Having access to your data across various devices is not just a convenience—it’s a necessity. Whether you’re switching from your laptop to your phone or sharing data with colleagues, syncing data seamlessly is crucial. Web browsers have evolved to become powerful tools that facilitate this process, allowing you to keep your bookmarks, passwords, hi
3 min read
How to use a Web Browser
A Web Browser is a software used to view websites over the internet. Some commonly used browsers are Microsoft Edge, Google Chrome, Opera, and Mozilla Firefox. To understand how to use a browser we will consider Chrome browser as an example to show various things that can be done in the browser. Here are some of the most used tasks we do using the
7 min read
Which browser is better for web developers - Chrome Vs Safari
Choosing a web browser is a decision, for developers in the evolving world of Web development. Each phase of the development process, such as testing, debugging, coding, and optimizing performance significantly affects the browser's performance. Among the browsers, Google Chrome and Apple Safari are widely used by developers. Let's explore the feat
6 min read
Explain the Web Browser?
A web browser works to provide an interface to the vast resources available on the Internet, a web browser acts as a mediator between the user and the websites, web-based programs, contents such as audio-visuals, and other online tools, the main utility of a browser is to fetch web resources from the internet and make such resources visible such as
10 min read
What is a web server - Working and Architecture
A web server is a software application or hardware device that stores, processes, and serves web content to users over the internet. It plays a critical role in the client-server model of the World Wide Web, where clients (typically web browsers) request web pages and resources, and servers respond to these requests by delivering the requested cont
6 min read
How to Change Search Engine on Microsoft Edge?
Microsoft Edge is a popular Web Browser initially launched for Windows devices in 2015 to compete with Google Chrome. Later, the Edge was designed to be available for Android devices also. And now, according to one latest survey report, the Edge has clinched the third position as the most popular web browser after Chrome and Firefox. To date, the E
3 min read
How to change the default search engine in Safari?
To change the default search engine in Safari, follow these steps: Step 1: Open the Safari browser and go to the Safari menu in the upper-left corner.Step 2: Select Preferences from that dropdown.Step 3: Once the Preferences window pops open, click the drop-down menu next to the Default search engine.Step 4: Click on the search engine you want to m
1 min read
How to change the default search engine in Browsers?
Changing the default search engine in your web browser can enhance your browsing experience by providing results from your preferred search engine. This article will guide you through the process of changing the default search engine in your web browser. The default search engine is the one that your browser uses when you type a search query into t
4 min read
Search Engine
Imagine you are in a library and are looking for a particular book. Now if you have to go through every book in each category, it will be a tedious and difficult task. Moreover, if the library has more than a million books then this task seems next to impossible. You are definitely going to need a librarian who can bring the relevant books for you
7 min read
How to Install Brave Browser on Windows?
Brave is a free and open-source web browser developed by Brave Software, Inc. based on the Chromium web browser. Built on top of Google’s open-source Chromium project, Brave is a web browser that’s designed to keep your browsing activity private by automatically disabling website trackers and blocking pesky ads. For even more secure browsing, it ha
2 min read
How to install Opera Browser on Windows?
Opera is a web browser and it is one of the oldest web browsers, it was first released in April 1995. It is available for different platforms like mobile, desktops, tablets, etc. It is written in the C++ programming language. At its released time, it was used as commercial software. It can be used on different operating systems like Windows, Mac, L
2 min read
How to Download and Install Mozilla Firefox Browser on Windows?
Mozilla Firefox is a web browser and it is built by Mozilla Corporation and it is free and open-source software. Its latest version is 71.0. It is available for a number of operating systems like Windows, Linux, Mac, etc. For displaying web pages it uses Gecko rendering engine. It was written in C, C++, Rust, Assembly, and some other languages for
3 min read
Disable JavaScript in Microsoft Edge Browser
There can be various reason to disable JavaScript in Edge browser. It may be for testing purpose to check how the website renders without JavaScript or to improve personal experience. There are two ways to disable JavaScript in Edge: Using Site Permission in Setting page Using Command Menu in Developer tools 1. Using Site Permission in Setting page
2 min read
Find unused JS and CSS code in Microsoft Edge Browser
During the development of websites developers may leave some unused JS and CSS code in the production. These unused JS and CSS codes are being downloaded by the browser when the site is visited by the user and can result in slowing down the page loading time, increase in internet consumption or increase in memory consumption. To detect unused JS an
3 min read
Article Tags :
three90RightbarBannerImg