Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14
Chapter 8

Introduction to Web Browsers & Architecture

What a web browser is and the basic components of its architecture.


Introduction

  • A web browser is a software application for retrieving, presenting and traversing information on the World Wide Web.
  • An information resource is identified by a Uniform Resource Identifier (URI) and may be a web page, image, video or other piece of content.
  • Examples: Google Chrome, Safari, Internet Explorer, Mozilla Firefox, Opera, Netscape Communicator.

Web Browser Architecture

Many commercial browsers interpret and display web documents. Their capabilities and structure vary depending on implementation, but all must have the most basic components:

  • Controller
  • Client programs
  • Interpreters
Controller
  ├─ Client programs : HTTP Client, FTP Client, SMTP Client
  ├─ Interpreters    : HTML Interpreter, Optional Interpreter
  └─ Driver program / Screen Input-Output + Graphical User Interface

Roles of the Components

  • Controller — works as a control unit (like the CPU). It takes input from the keyboard or mouse, interprets it, and makes other services work on the basis of the input it receives.
  • Interpreter — receives information from the controller and executes the instructions line by line.
  • Client program — describes the specific protocol that will be used to access a service. When a link is selected, the controller extracts the scheme from the URL; this determines which client (HTTP, FTP, etc.) will be used to fetch the document.

The browser fetches the document and, depending on the document type (HTML, XML, etc.), calls the appropriate interpreter to render and display it.