# Web browser

> The app that fetches web pages from the internet and draws them on your screen.

- Level: Basic
- Topics: Software, Networks
- URL: https://tidbit.legios.com.ar/web-browser/
- In Spanish: [Navegador web](https://tidbit.legios.com.ar/es/web-browser/)

A **web browser** is the app you use to visit websites: Chrome, Safari, Firefox and Edge are browsers. When you type an address or click a link, the browser looks up which server holds that site (using DNS), asks it for the page over HTTP or HTTPS, and receives a bundle of files back: HTML for the content, CSS for the looks, JavaScript for the behavior, plus images and fonts.

Then comes the hard part. The browser's **rendering engine** turns those files into the page you see, working out the position of every word and box, and runs the JavaScript that makes the page interactive. A modern site can involve hundreds of files, and the browser fetches and assembles them in a fraction of a second.

Browsers are also a security wall. Each site runs in its own sandbox, so a page cannot read your files or peek at what another tab is doing. The browser shows the padlock for HTTPS, stores passwords and cookies, warns about known phishing sites and asks before a page uses your camera or location. Under the hood only a few engines exist, so many browsers with different names share the same core.

## An analogy

A translator and builder in one. It phones the store (the server), receives a box of flat-pack parts and instructions, and assembles the furniture in your living room in an instant.

## Keep in mind

- Fetches pages from servers using DNS and HTTP(S), then draws them.
- Its rendering engine turns HTML and CSS into pixels and runs JavaScript.
- Each site is isolated, so pages cannot read your files or other tabs.
- Many browsers share the same few engines underneath.

## Go deeper

- [How the web works (MDN)](https://developer.mozilla.org/en-US/docs/Learn_web_development/Getting_started/Web_standards/How_the_web_works)
- [Browser (MDN glossary)](https://developer.mozilla.org/en-US/docs/Glossary/Browser)
- [Web browser on Wikipedia](https://en.wikipedia.org/wiki/Web_browser)

## Related terms

- [Server](https://tidbit.legios.com.ar/server/): A computer whose job is to answer requests from other computers, all day, every day.
- [DNS](https://tidbit.legios.com.ar/dns/): The internet's phone book: it turns names like wikipedia.org into IP addresses.
- [HTTP](https://tidbit.legios.com.ar/http/): The request-and-response language browsers and websites speak.
- [HTTPS](https://tidbit.legios.com.ar/https/): The padlock in your browser: web traffic nobody in between can read.
- [HTML](https://tidbit.legios.com.ar/html/): The text format that describes what is on a web page: headings, paragraphs, links.
- [CSS](https://tidbit.legios.com.ar/css/): The language that decides how a web page looks: colors, fonts, spacing, layout.
- [JavaScript](https://tidbit.legios.com.ar/javascript/): The programming language that runs inside web pages and makes them interactive.
- [Sandboxing](https://tidbit.legios.com.ar/sandboxing/): Running a program in a closed box so it cannot harm anything outside it.
