web.dev LIVE has kicked off! Join us now for our digital event from June 30th to July 2nd at web.dev/live

Edit HTML in the Console Panel

Edit HTML in the Console Panel of DevTools

The DOM node context menu, which you may recognize from the elements panel, is also present in the console panel.

  1. Log a DOM node to the console.
  2. Right click on it.
  3. Select Edit as HTML or Edit Text.
  4. Notice the DOM is updated on the page and also in the Elements Panel.