iitm_scraper / markdown_files /Browser__DevTools.md
Shriyakupp's picture
Upload 107 files
980dc8d verified
metadata
title: 'Browser: DevTools'
original_url: https://tds.s-anand.net/#/devtools?id=browser-devtools
downloaded_at: '2025-06-08T23:21:14.785028'

Browser: DevTools

Chrome DevTools is the de facto standard for web development and data analysis in the browser. You’ll use this a lot when debugging and inspecting web pages.

Here are the key features you’ll use most:

  1. Elements Panel

    • Inspect and modify HTML/CSS in real-time
    • Copy CSS selectors for web scraping
    • Debug layout issues with the Box Model
    // Copy selector in Console
    copy($0); // Copies selector of selected elementCopy to clipboardErrorCopied
    
  2. Console Panel

    • JavaScript REPL environment
    • Log and debug data
    • Common console methods:
    console.table(data); // Display data in table format
    console.group("Name"); // Group related logs
    console.time("Label"); // Measure execution timeCopy to clipboardErrorCopied
    
  3. Network Panel

    • Monitor API requests and responses
    • Simulate slow connections
    • Right-click on a request and select “Copy as fetch” to get the request.
  4. Essential Keyboard Shortcuts

    • Ctrl+Shift+I (Windows) / Cmd+Opt+I (Mac): Open DevTools
    • Ctrl+Shift+C: Select element to inspect
    • Ctrl+L: Clear console
    • $0: Reference currently selected element
    • $$('selector'): Query selector all (returns array)

Videos from Chrome Developers (37 min total):

[Previous

Unicode](#/unicode)

[Next

CSS Selectors](#/css-selectors)