Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 135035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:43:17+00:00 2026-05-11T06:43:17+00:00

I decided to put some effort in building a web browser from scratch. What

  • 0

I decided to put some effort in building a web browser from scratch. What are the common functions, architectures, and features of modern web browsers that I should know before getting started?

Any recommendations are highly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:43:17+00:00Added an answer on May 11, 2026 at 6:43 am

    Well break it down into pieces. What is a Web browser? What does it do? It:

    • Fetches external content. So you need a HTTP library or (not recommended) write this yourself. There’s a lot of complexity/subtlety to the HTTP protocol eg handling of expires headers, different versions (although it’s mostly 1.1 these days), etc;
    • Handles different content types. Theres a Windos registry for this kind of thing that you can piggyback. I’m talking interpreting content based on MIME type here;
    • Parses HTML and XML: to create a DOM (Document Object Model);
    • Parses and applies CSS: this entails understanding all the properties, all the units of measure and all the ways values can be specified (eg ‘border: 1px solid black’ vs the separate border-width, etc properties);
    • Implements the W3C visual model (and this is the real kicker); and
    • Has a Javascript engine.

    And that’s basically a Web browser in a nutshell. Now some of these tasks are incredibly complex. Even the easy sounding ones can be hard. Take fetching external content. You need to deal with use cases like:

    • How many concurrent connections to use?
    • Error reporting to the user;
    • Proxies;
    • User options;
    • etc.

    The reason I and others are colletively raising our eyebrows is the rendering engine is hard (and, as someone noted, man years have gone into their development). The major rendering engines around are:

    • Trident: developed by Microsoft for Internet Explorer;
    • Gecko: used in Firefox;
    • Webkit: used in Safari and Chrome 0-27;
    • KHTML: used in the KDE desktop environment. Webkit forked from KHTML some years ago;
    • Elektra: used in Opera 4-6;
    • Presto: used in Opera 7-12;
    • Blink: used in Chrome 28+, Opera 15+, webkit fork;

    The top three have to be considered the major rendering engines used today.

    Javascript engines are also hard. There are several of these that tend to be tied to the particular rendering engine:

    • SpiderMonkey: used in Gecko/Firefox;
    • TraceMonkey: will replace SpiderMonkey in Firefox 3.1 and introduces JIT (just-in-time) compilation;
    • KJS: used by Konqueror, tied to KHTML;
    • JScript: the Javascript engine of Trident, used in Internet Explorer;
    • JavascriptCore: used in Webkit by the Safari browser;
    • SquirrelFish: will be used in Webkit and adds JIT like TraceMonkey;
    • V8: Google’s Javascript engine used in Chrome and Opera;
    • Opera (12.X and less) also used its own.

    And of course there’s all the user interface stuff: navigation between pages, page history, clearing temporary files, typing in a URL, autocompleting URLs and so on.

    That is a lot of work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can use the array_combine function, like so: $numbers =… May 12, 2026 at 1:10 am
  • Editorial Team
    Editorial Team added an answer This is a shortcoming of the FTP client that comes… May 12, 2026 at 1:10 am
  • Editorial Team
    Editorial Team added an answer "What's the simplest solution to 'remember' the state of the… May 12, 2026 at 1:10 am

Related Questions

I'm a student and I have a lot of free time on this vacation
I'm stuck with .Net 1.1 application (i.e. I can not use the generics goodies
I'm having major problems getting Django working with my Apache configuration. I did not
While refactoring some C# classes, I've run into classes that implement IDisposable. Without thinking,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.