A page looks wrong and you can’t see why. Here is how to use Chrome DevTools: press F12, pick the element, then read its styles, console messages and network requests.
If you are new to debugging, the wider coding tips for beginners guide puts this tool in context.
| Item | Value |
|---|---|
| Open DevTools (Windows/Linux) | F12 or Control + Shift + I |
| Open DevTools (Mac) | Command + Option + I |
| Jump straight to the Console (Windows/Linux) | Control + Shift + J |
| Mid-tier mobile throttle preset | Fast 3G and CPU 4 times slower |
| Low-end mobile throttle preset | Slow 3G and CPU 6 times slower |
Figures come from the Chrome DevTools keyboard shortcuts page and the device mode guide. They can change with new Chrome releases, so check those pages before you rely on them.
Open DevTools and inspect an element
The quickest route is the right-click menu. According to the Chrome guide to viewing and changing CSS, you right-click the element and select Inspect.
Keyboard users have shortcuts too. The shortcuts reference lists F12 or Control + Shift + I on Windows and Linux, and Command + Option + I on a Mac, with your cursor focused on the page.
Once the panel is open, these shortcuts save time:
- Control + Shift + C (Command + Shift + C on Mac) toggles Inspect Element Mode, so you can hover over the page and click what you want to examine.
- Control + Shift + J (Command + Option + J on Mac) opens the Console directly.
- Control + Shift + M (Command + Shift + M on Mac) toggles Device Mode.
Read and edit CSS in the Styles tab
With an element selected, the Styles tab lists the CSS rules applied to it, as the same CSS guide explains.
You can experiment without touching your code. The guide says to use the Styles tab when you want to change or add CSS declarations to an element.
A few edits worth trying first:
- Click a value, such as a colour or a padding size, and type a new one.
- Add a declaration in an empty line inside a rule.
- Add a class to the element, then switch it on and off with the checkbox that appears below the Add new class box.
Treat these edits as a sketchpad and copy anything you like back into your source files. If you need a tool for that step, our rundown of the best code editor for web development is a good place to start.
Why is my CSS not working?
This is where DevTools earns its place. Chrome’s guide to finding invalid, overridden and inactive CSS says that new CSS can appear in pale text, non-editable, crossed out, or with a warning or hint icon beside it.
Each look points to a different cause:
- Pale selector: the Styles pane shows matched selectors in regular text and unmatched ones in pale text, so a pale rule is not hitting this element.
- Crossed out with a warning icon: the property is invalid or unknown, or the value is invalid. Check for a typo.
- Crossed out, no warning: another declaration overrides it according to the cascading order.
- Pale with an information icon: the property is valid but has no effect because of other properties, such as setting a width on an element that ignores it.
Many of these cases match the common css mistakes that trip up new developers.

Run JavaScript and read errors in the Console
The Console overview says developers log messages for 2 general reasons. One is making sure code runs in the right order, and the other is inspecting variable values at a given moment.
It also works as a REPL, which means you can type JavaScript and run it against the page you are inspecting. Start with a tiny expression, such as the page title, and see what comes back.
That makes the Console a safe place to test an idea before you put it in your script file.
Check requests in the Network panel
Slow or missing images, scripts and stylesheets show up here. The Network panel overview says to open DevTools and click Network in the action bar at the top.
Recording is automatic, but only while the panel is open. Open DevTools first, then reload the page so nothing is missed.
Select any request to see its details. Two are especially useful for beginners:
- Initiator tells you what caused the request.
- Timing gives a breakdown of the network activity for the selected request.
Use these two to trace why an image or stylesheet is slow or missing.
Test your page at phone size
Device mode is an approximation, not a real phone. The device mode guide describes it as a way to approximate how your page looks and performs on a mobile device.
The device toolbar opens with Dimensions set to Responsive, so you can drag the handles to any width. Choosing Mid-tier mobile simulates fast 3G with the CPU 4 times slower than normal, and Low-end mobile simulates slow 3G with the CPU 6 times slower.
Use it to catch broken layouts and heavy pages early. Still test on an actual phone before you ship.
Frequently asked questions
Is Chrome DevTools free?
Show answer
It ships inside the Chrome browser, so there is nothing extra to install. Open it with a shortcut or the right-click menu.
Do my DevTools changes save to the website?
Show answer
No. Edits happen on the copy of the page in your browser, not on the server. Move any fix you want to keep into your source files.
Which panel should a beginner learn first?
Show answer
Start with Elements, because seeing and editing styles gives instant feedback. Add the Console once you write JavaScript, and the Network panel when something fails to load.
Do I need to know JavaScript to use DevTools?
Show answer
No. Inspecting and editing CSS in the Elements panel needs no JavaScript, so you can begin there and add the Console later.



