DevTools: inspect and fix

Knowledge Videos

Short animated explainers, organised by subject.

DevTools: inspect and fix

Right click and Inspect: the Elements tab, the Styles panel, live edits that vanish on refresh, and the Console for finding errors.

Transcript

Browsers have a built in tool for looking inside a page. It is called DevTools, short for developer tools. Right click anything on a page, and choose Inspect.

The Elements tab shows the H T M L of the page as a tree. Click an element, and the Styles panel shows its C S S rules.

You can change things live. Edit a color in the Styles panel, and the page changes at once. But nothing is saved. Refresh the page, and your change is gone. To keep a change, edit your own file.

The Console tab shows messages and errors. If an image does not load, or a file is missing, the console tells you, and helps you find the bug.

Remember: DevTools lets you inspect a page. Change things live to experiment, edit your file to keep them, and read the console to find errors.

More in this series