Working with DevTools

Note: While most browsers offer a version of DevTools, this guide is specifically for Google Chrome’s DevTools.

What are DevTools?

Chrome DevTools are a set of built-in debugging and inspection tools for webpages within the Google Chrome browser. They provide functionalities for examining the structure, behavior, and performance of webpages, allowing developers to identify and solve issues, optimize resource usage, and experiment with different configurations.

Element inspection

Console Panel

Sources Panel

Network Analysis

Performance Panel

Accessing DevTools

There are two ways to access DevTools:

Inspect

Exploring the Elements panel

The elements panel, often referred to as the “Inspector,” provides a visual representation of the HTML and CSS of a webpage.

Here, developers are able to:

Searching for elements

A search bar located at the bottom of the panel allows developers to find specific elements based on:

Search

Select Element tool

In Chrome DevTools, the “Select Element” tool, officially referred to as the Inspect Icon, is symbolized by an icon that looks like a cursor arrow. Located in the top left corner of the DevTools window, this tool enables you to click on and directly inspect elements within a webpage.

Developers use it to:

Pointer

Working in the Console

The Console panel within Chrome DevTools acts as a powerful interpreter and interactive workspace for JavaScript within the context of a webpage.

It allows developers to:

Console Input

Monitor Output

Network tab

The Network Tab in Chrome DevTools is a helpful tool for examining network activity. It provides useful insights into the requests and responses exchanged between the browser and server. It shows everything your page loads, like pictures, videos, and stylesheets, as well as how long it takes these resources to load and if there were any errors along the way.

Waterfall

Developers use it for:

Benefits of the network tab

Devices panel

The Devices Panel in Chrome DevTools is like a digital playground for testing your webpages. It lets you see how your site looks and works on different devices, like phones and tablets.

Devices

Developers use it for:

Devices Menu

Benefits for testing