Working with Web Browsers

Installing and customising the web browsers most commonly used by web designers and web developers.

Learning Goals

At the end of this Tutorial, you will be able to:

  • Download and install two web browsers: Brave and Mozilla Firefox Developer Edition.
  • Display the Menu Bar in Mozilla Firefox Developer Edition.
  • View a web page’s HTML source code and linked CSS stylesheet files.

About web browsers

A web browser is a software program or app that gives you access to web pages and services on the Internet. With a web browser, you can display text, images and animations, watch videos, listen to audio podcasts and music, exchange emails, and purchase products and services.

View a chart of web browser popularity in Europe

Default web browsers

Your laptop or desktop computer comes with a default web browser pre-installed:

  • Microsoft Edge: This web browser is included with the Microsoft Windows operating system. Since 2016, Microsoft has recommended using Edge as a replacement for the earlier and flawed Internet Explorer browser.
  • Safari: This web browser is included in the macOS and iOS operating systems used on Apple computers, tablets and mobile phones.

In these Tutorials, you will instead use two web browsers most popular with web designers and developers:

Installing Brave

Brave is a privacy-focused web browser developed by Brendan Eich, creator of the JavaScript programming language. Both Brave and Google Chrome are based on the same open-source software code, so both work in a largely similar way and support almost all the same browser extensions.

Because Brave blocks ads and website trackers, it can run up to six times faster than Chrome. Follow these steps to download and install it.

  1. Use your current web browser to go to this web address:  https://brave.com
  2. Click the button named Download Brave Tutorial Web Browsers: Brave Download Brave will begin downloading the appropriate version for your computer and operating system. Follow the usual download and installation instructions.

The Brave web browser will install and then open on your computer.

Installing Mozilla Firefox Developer Edition

The Firefox Developer Edition is a version of the Firefox web browser from Mozilla that is tailored for web designers and developers. You can install and use both this and the regular version of Firefox on the same computer.

Follow these steps to download and install Mozilla Firefox Developer Edition.

  1. Use your current web browser to go to this web address:  https://www.mozilla.org/en-US/firefox/developer/
  2. Click the button named Firefox Developer Edition Tutorial Web Browsers: Firefox Download Firefox will begin downloading the appropriate version for your computer and operating system.
  3. Follow the usual download and installation instructions for your computer. Tutorial Web Browsers: Firefox Install

The Firefox Developer Edition web browser will install and then open on your computer.

Displaying the Menu Bar in Firefox

You will find it easier to use Firebox Developer Edition if you display the Menu Bar that is hidden by default. Here are the steps:

  1. At the top-right of the Firefox screen, click the hamburger (three lines) icon to display a dropdown menu of options. Tutorial Web Browsers: Firefox Menubar 1
  2. From this menu, choose the More tools command.
  3. From the next menu displayed, choose the Customize Toolbar command.
  4. Along the bottom of the next screen, you can see a number of options. One is a dropdown list named Toolbars. Tutorial Web Browsers: Firefox Menubar 2 Click on Toolbars and then click the Menu Bar option to select it.
  5. When finished, click the Done button at the bottom-right of the screen.

You can now see that the Menu Bar, with its various menus of commands, is visible at the top of the Firefox screen.

Tutorial Web Browsers

As a web designer and front-end developer, the Menu Bar options you will use most frequently are those available with the Tools | Browser Tools command.

Tutorial Web Browsers: Firefox Menubar 3

Viewing HTML and CSS source files

You can use a web browser to display the underlying HTML and CSS code for a web page. Here is an example:

  1. Use your web browser to go to this web address:  https://www.citizensinformation.ie
  2. Right-click anywhere on the web page. From the context menu displayed, choose the View Page Source command. Tutorial Web Browsers: Page Source You can now see the HTML code of the web page in a new tab of your web browser. Tutorial Web Browsers: Page Source Menu
  3. Web pages are typically linked to one or more stylesheet files that control their visual appearance – such as the position of various elements, their fonts and colours.  Stylesheet files are included near the top of the HTML code in the <head> section, and their file names end in .css. You will also see that they are shown as clickable hyperlinks.  In this example, you can see two stylesheet files, named print.css and screen.css. Tutorial Web Browsers: Page Source
  4. Click on the second stylesheet, screen.css Tutorial Web Browsers: Page Source You can now see the content of the stylesheet.

When finished, you can close the browser tabs for the Citizens Information website.

Working with DevTools

DevTools (the short name for Developer Tools) are built in to every web browser. They enable you to view and experiment with the content and code of web pages.

To open DevTools in your browser:

  1. Press Ctrl + Shift + i (Windows) or + Shift + i (Mac)
  2. Display the Inspector (Firefox) or Elements (Brave/Chrome) tab.
  3. Click the arrow icon at the top-left of the DevTools window.

Changing the DevTools position

To position or ‘dock’ the DevTools window:

  1. Open the DevTools window.
  2. Near the top-right of the DevTools window, click the vertical ellipses (three dots) icon.
  3. Click the docking position you want for the DevTools window.

Below is an example of the DevTools window docked on the right.

JavaScript

And here is an example of the DevTools window docked along the bottom.

JavaScript

Changing the DevTools font size

To change the font size in the DevTools window, select the window, and then press the Ctrl key followed by the plus (+) or minus (-) key. To reset, press Ctrl and 0.

Pinning browsers to your Windows Taskbar

On Microsoft Windows, you can start applications in a variety of ways. For those web browsers you use frequently, it makes sense to add or ‘pin’ them to your Taskbar along the bottom of your Windows desktop. You can then launch any one of them with a single click.

To pin an application, follow these steps:

  1. Enter the name of the application in the Windows Search Box at the left of the Taskbar.
  2. When the application name is displayed, right-click on it.
  3. Choose Pin to taskbar from the list of options displayed. Pin applications to Windows Taskbar
  4. Repeat these actions for as many web browsers as you want to pin to your Taskbar.

In future, when you need to launch Brave, Firefox or other pinned browsers, you can simply and quickly click the relevant icon on the Taskbar.

Windows Taskbar icons