What is a browser?
A browser is the app you use to visit websites, like the one you’re probably reading this in right now. Some of the most popular browsers are Chrome, Safari, Firefox and Edge.
Typing a web address and hitting enter tells the browser to find the server that hosts the site and ask it for the page. Browsers and servers talk to each other using HTTP, which is a set of rules they both follow. The server mostly sends back three kinds of files: HTML for the content, CSS for how it looks and JavaScript for anything interactive. The browser reads all of them and draws the page you see on screen.
Netscape Navigator was the browser that got a lot of people online for the first time in the mid-1990s. Netscape also created JavaScript in 1995 so web pages could respond when you clicked on things. Microsoft started giving away Internet Explorer with every copy of Windows and Netscape lost most of its users within a few years. Netscape gave its code away for anyone to build on before it faded out, which is how Firefox got started.
Developers care about the browser because a lot of their code runs inside it. JavaScript that ships with a page runs on the visitor’s own computer, while backend code runs on the server where visitors can’t see it. Anyone can read the code that runs in their browser, so developers keep passwords and secret keys on the server.
Every major browser comes with developer tools built in. You can right-click any page and pick Inspect to see its HTML, tweak the CSS live and watch every request the page makes. They’re the first place I look when I’m debugging a website.