learn.web Back to the curriculum ↗

First steps on the web / 02

Your browser is a studio

Make live edits, read errors, and measure any page with the tools already in your browser.

Time
55 min
Mode
Learn → Make → Check
Path
Web Foundations

By the end, you can…

DevTools are the maker's workbench

Every modern browser includes professional tools. The Elements panel shows the live DOM: you can edit text, move elements, and restyle anything, and the change is instantly visible. Nothing you do there is saved—it is a safe sandbox for learning.

The Console shows errors, warnings, and messages from the page, and accepts JavaScript commands you type. The Network panel shows every request. Lighthouse audits performance, accessibility, and best practices in one click.

Practice on a page you like

Open DevTools on any site, select an element, and change its text and color. Refresh to prove the original is untouched. Break something on purpose, then find the error in the console.

Then run Lighthouse on your own page and read the results as a to-do list, not a verdict. Each failing audit names the file, the rule, and usually the fix.

Working example
document.querySelector("h1").textContent = "I edited this live"; // try it in the Console

Your studio task

Make — Audit one real page with the browser's own tools.

  1. Open a site you admire and change one element's text and one style.
  2. Type a one-line script into the console and run it.
  3. Find and read one error or warning on a real page.
  4. Run Lighthouse and write down the three lowest-scoring audits.
Definition of done

Your notes capture one live edit, one console finding, and three measurable improvement candidates.

Open the interactive lesson with its workspace ↗

Knowledge check

Which panel lets you edit a page's HTML and CSS live?
  1. Network
  2. Elements
  3. Application
Reveal answer (B)

The Elements panel shows the live DOM and computed styles you can edit in place.

What is Lighthouse best for?
  1. Measuring performance, accessibility, and best practices in one pass
  2. Editing images
  3. Managing browser extensions
Reveal answer (A)

Lighthouse runs a battery of audits and scores the page against them.