Loading...

HTML essentialsGetting Started

Browser DevTools basics

5 min lesson

Next
  • DevTools (developer tools) is a panel built into every modern browser that lets you inspect and change a page live.
  • You open it with F12, Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac).
  • The Elements panel shows the HTML structure of the page as a tree you can expand and collapse.
  • You can edit HTML or CSS temporarily in DevTools, but changes vanish when you reload the page.
  • The Console panel shows errors and messages; it is the first place to look when something does not work.
  • The Network panel lists every request the page made, which connects back to How the web works: browsers, HTTP & URLs.
  • This prepares you for Document structure & meta tags, where you will read and write the page structure yourself.
Keep in mind
  • DevTools is your magnifying glass: use it to see what the browser actually received.
  • Edits in DevTools are temporary; change your source file to make them permanent.
  • Check the Console first when a page misbehaves.
  • Open it often; the more you look, the faster you understand pages.

DevTools panels

PanelWhat it shows
ElementsThe page's HTML as an expandable tree
ConsoleErrors and messages from the page
NetworkEvery request and its status code
SourcesThe files the browser loaded

A helpful analogy

DevTools is like the X-ray screen at a repair shop. You can see the inside of the page without taking it apart, and you can try a small fix before committing to it.

Common mistakes

Editing in DevTools and expecting it to stick

Avoid

Edit HTML in Elements, then reload

Use instead

Edit the .html file in your editor, then reload

DevTools changes live only in memory. A reload throws them away, so always fix the source file.

Quick tips

  • •Use the element picker (the arrow icon) to click a part of the page and jump to its HTML.
  • •Keep the Console open while you learn; red messages point to real problems.
Previous
Next