Chrome Developer Tools Cheat Sheet: HTML CSS
Chrome Developer Tools Cheat Sheet: HTML CSS
HTML CSS
Edit DOM attributes inline Inline CSS per-element styling
In Elements tab or styles drawer, double In Elements sidebar, double click CSS
click attribute.
• Autocompletion of keys and values
• Tab between keys and values
• Double click after closing bracket to
add new property
Versioned CSS/JS
CSS/JS changes get saved into versions
Visually inspect DOM elements
• Right click and revert to a revision.
In Elements tab, click footer button or
Ctrl - Shift - C and select desired • Right click and save back to a local
file.
element in page.
JavaScript
Console Breakpoints
Invoke with Esc or Ctrl - Alt - J or Console In Scripts tab, click in the gutter
• Get current DOM element with $0
• Conditional breakpoints
• Get all keyboard shortcuts with ? right click the gutter
• DOM breakpoints
Console API in Elements tab, right click
• copy(text) – copy text to clipboard • XHR breakpoints
• dir(elt) – show element properties in Scripts sidebar + to filter by URL