Web development tools

From Wikipedia, the free encyclopedia
Page inspector with element picker and CSS property editor

Web development tools (often called devtools or inspect element) allow web developers to test and debug their source codes. They are different from website builders and integrated development environments (IDEs) in that they do not assist in the direct creation of a webpage, rather they are tools used for testing the user interface of a website or web application.

Web development tools come as browser add-ons or built-in features in web browsers. Most popular web browsers, such as Google Chrome, Firefox, Internet Explorer, Safari, Microsoft Edge and Opera,[1] have built-in tools to help web developers, and many additional add-ons can be found in their respective plugin download centers.

Web development tools allow developers to work with a variety of web technologies, including HTML, CSS, the DOM, JavaScript, and other components that are handled by the web browser. Due to increasing demand from web browsers to do more,[2] popular web browsers have included more features geared for developers.[3]

Web developer tools support[edit]

Several notable web browsers have support for web developer tools that allow web designers and developers to look at the make-up of their pages. These are all tools that are built into the browser and do not require additional modules or configuration.

  • FirefoxF12 opens the Web Console / Browser Console (since Firefox 4).[4][5] The Web Console applies to a single content tab; the Browser Console applies to the whole browser.[6] Many addons also exist, including Firebug.
  • Google Chrome – Chrome Developer Tools (DevTools)[7]
  • Internet Explorer and Microsoft EdgeF12 opens Web Developer Tools (as of version 8)[8][9]
  • OperaOpera Dragonfly[10]
  • Safari – Safari Web Development Tools[11] (as of version 3)[12]

Most used features[edit]

The built-in web developer tools in the browser are commonly accessed by hovering over an item on a webpage and selecting the "Inspect Element" or similar option from the context menu. Alternatively the F12 key tends to be another common shortcut.[13]

HTML and the DOM[edit]

HTML and DOM viewer and editor is commonly included in the built-in web development tools. The difference between the HTML and DOM viewer, and the view source feature in web browsers is that the HTML and DOM viewer allows you to see the DOM as it was rendered in addition to allowing you to make changes to the HTML and DOM and see the change reflected in the page after the change is made.[14]

In addition to selecting and editing, the HTML elements panels will usually also display properties of the DOM object, such as display dimension, and Cascading- style sheet properties.[15]

3D page inspector, a feature of Firefox versions 11 to 46.

Firefox versions 11 to 46 were equipped with a 3D page inspector using WebGL, where the nesting of elements was visualized with layers protruding from the page surface.[16][17]

Web page assets, resources and network information[edit]

Web pages typically load and require additional content in the form of images, scripts, font and other external files. Web development tools also allow developers to inspect resources that are loaded and available on the web page in a tree-structure listing, and the appearance of style sheets can be tested in real time.[18][19]

Web development tools also allow developers to view information about the network usage, such as viewing what the loading time and bandwidth usage are and which HTTP headers are being sent and received.[20]

Profiling and auditing[edit]

Profiling allows developers to capture information about the performance of a web page or web application. With this information developers can improve the performance of their scripts. Auditing features may provide developers suggestions, after analyzing a page, for optimizations to decrease page load time and increase responsiveness. Web development tools typically also provide a record of the time it takes to render the page, memory usage, and the types of events which are taking place.[21][22]

These features allow developers to optimize their web page or web application.[23]

JavaScript debugging[edit]

JavaScript is commonly used in web browsers. Web development tools commonly include a panel to debug scripts by allowing developers to add watch expressions, breakpoints, view the call stack, and pause, step over, step into, and step out of functions while debugging JavaScript.

A JavaScript console is commonly included. The consoles allow developers to type in JavaScript commands and call functions, or view errors that may have been encountered during the execution of a script.[24][25][26]

Extensions and plugins[edit]

Modern web browsers support the use of plugins or extensions to add or augment functionality.[27] There are many common plugins that can provide a diverse range of additional features.

See also[edit]

References[edit]

  1. ^ "同性恋三级".
  2. ^ "Growing Demand for Web Developers". Bright Hub. 5 February 2009. Retrieved 2018-09-06.
  3. ^ "Browsers are the new IDE for Web Development". devworks.thinkdigit.com. 2012-06-29. Archived from the original on 2012-07-02.
  4. ^ "The Browser Console". Mozilla Hacks – the Web developer blog. Retrieved 2018-09-06.
  5. ^ "Web Console". MDN Web Docs. Retrieved 2018-09-06.
  6. ^ "Browser Console". Mozilla Developer Network. 13 August 2016. Retrieved 15 March 2017.
  7. ^ "Chrome DevTools Overview - Google Chrome". developer.chrome.com. Retrieved 2018-09-06.
  8. ^ McCormick, Libby. "F12 Developer Tools (Windows)". msdn.microsoft.com. Retrieved 2018-09-06.
  9. ^ erikadoyle. "Microsoft Edge Developer Tools - Microsoft Edge Development". docs.microsoft.com. Retrieved 2018-09-06.
  10. ^ "Opera Browser | Faster, Safer, Smarter Web Browser". www.opera.com. Retrieved 2018-09-06.
  11. ^ Inc., Apple. "Tools - Safari - Apple Developer". developer.apple.com. Retrieved 2018-09-06. {{cite web}}: |last= has generic name (help)
  12. ^ Safari version history
  13. ^ "Chrome DevTools".
  14. ^ McCormick, Libby. "Introduction to F12 Developer Tools (Windows)". msdn.microsoft.com. Retrieved 2018-09-06.
  15. ^ "Inspect and Edit Pages and Styles  |  Tools for Web Developers". Google Developers. Retrieved 2018-09-06.
  16. ^ "Firefox gets 3D page inspector tool". 10 January 2012. Archived from the original on July 9, 2021. Retrieved 1 July 2021. {{cite journal}}: Cite journal requires |journal= (help)
  17. ^ "3D view - Firefox Developer Tools | MDN". developer.mozilla.org. From Firefox 47 onwards, 3D view is no longer available.
  18. ^ "Resources Panel - Google Chrome". developers.google.com. Retrieved 2018-09-06.
  19. ^ "Firefox Debuts New Developer Toolbar". The Mozilla Blog. Retrieved 2018-09-06.
  20. ^ "Measure Resource Loading Times  |  Tools for Web Developers". Google Developers. Retrieved 2018-09-06.
  21. ^ "Profiles Panel - Google Chrome". developers.google.com. Retrieved 2018-09-06.
  22. ^ McCormick, Libby. "F12 developer tools console error messages (Windows)". msdn.microsoft.com. Retrieved 2018-09-06.
  23. ^ McCormick, Libby. "Using the Profiler Tool to analyze the performance of your code (Windows)". msdn.microsoft.com. Retrieved 2018-09-06.
  24. ^ "New Firefox Command Line helps you develop faster". Mozilla Hacks – the Web developer blog. Retrieved 2018-09-06.
  25. ^ "Opera Browser | Faster, Safer, Smarter Web Browser". www.opera.com. Retrieved 2018-09-06.
  26. ^ "Using the Console  |  Tools for Web Developers". Google Developers. Retrieved 2018-09-06.
  27. ^ "More browser features, fewer plugin updates | Firefox". Mozilla. Retrieved 2018-09-06.