
- What is Chrome Developer Tool?
- How to launch google chrome developer tools?
- Preview Your Webpage Across Different Devices & Resolutions
- Inspect Elements
- Conclusion
What is Chrome Developer Tool?
Google Chrome Developer Tools is a powerful feature built right into Google Chrome that allows you to take control of your website experience. With Chrome Developer Tools, you can edit your webpage content in real-time, diagnose front-end problems quickly, and troubleshoot your webpage instantly.
The Google Chrome Developer Tools is powerful for debugging and for you to take control of your website structure. In this tutorial, we will focus on how to inspect elements, which is one of the most basic skillsets to start using it.
For the first step, let’s start by learning how to launch Google Chrome Developer Tools, then we will introduce the three most important and frequently used tabs within the inspect element: Styles, Layout, and Event Listener. Understanding these tabs and how to use them effectively can greatly enhance your web development workflow and help you create better, more responsive websites. So let’s dive in and explore each of them in more detail!
How to launch google chrome developer tools?
Method 1: Use Keyboard Shortcut:
Press shortcut key F12 from the keyboard (For Windows user) or shortcut key Command + Option + i from the keyboard (For Mac user)
Method 2: Right-clicking anywhere on a webpage and select the “Inspect” option from the context menu that appears.

Method 3: Click on the three vertical dots (⋮) located in the top right corner of the browser window.

Dockside direction
In this article we will use the right-docked side as a demonstration. However, you can easily change the dockside direction to any position that is more suitable for your specific needs.

Preview Your Webpage Across Different Devices & Resolutions
Click on the icon beside the Elements tab to access simulation options for how your webpage appears on various devices, including mobile devices, tablets, and custom dimensions.

Inspect Elements
Getting Started
Once the developer tools is open, you’ll see various tabs such as Elements, Console, Sources, Network, and more. The Elements tab is one of the most useful features which allows developers to inspect and manipulate the HTML and CSS code of their pages.

To inspect an element, simply click on the icon and mouse over to target the desired element on your web page, then, it will be highlighted in blue. From there, you can :
- Preview and modify the CSS styling of the selected element
- Preview and modify HTML elements and the DOM tree of the selected element
In this tutorial, let’s focus on three most important and frequently used tabs within the inspect element: Styles, Layout, and Event Listener
1. Styles
The Styles tab displays all of the styles that have been defined for the selected element, including those that are inherited from parent elements or defined in both inline CSS styles or external stylesheets. Additionally, the Styles tab displays all styles that have been applied to an element, including those that have been overridden by other styles.
This is extremely useful when you are trying to inpect and diagnose issues related to the styling of a webpage, such as font size or color, border properties, or layout issues.

In this example, you can change the font color of a title on a web page by selecting the title element and modifying its color property in the Styles panel on the right side of the Elements tab. As you modify the property, you will see the changes reflected on the page immediately.
2. Computed
The Computed tab is another powerful feature within the Google Development Console tool. Unlike the Styles tab, which displays all of the defined styles for an element, the Computed tab will only shows the actual computed values of each CSS property that are rendered on screen.
This is very useful when you want to have a quick overview of the rendered CSS or trying to identify and troubleshoot issues related to the specificity and inheritance of CSS styles, as it shows how different styles are being applied and combined to create the final appearance of an element.

3. Event Listener
The Event Listener tab is a powerful tool for us to debug event-related issues on a web page. When you select an element on a web page, the Event Listener tab allows you to see all the event listeners that are attached to that element.
An event listener is a JavaScript function that responds to a specific event, such as a button click, a keypress, or a form submission. This is especially useful when you are trying to troubleshoot why a button, link, or other interactive element on the web page is not behaving as expected.

For example, let’s say that you are working on a form and you notice that the submit button is not submitting the form data when clicked. You can use the Event Listener tab to inspect the button element and check if there is an event listener attached to the button’s click event. If there is no event listener or if the event listener is not properly defined, you can modify the code to add or fix the event listener, and then test the button again.
Conclusion
In conclusion, Google Chrome Developer Tools is playing an essential role in create better, more responsive websites. It allows you to take control of your website experience, diagnose front-end problems quickly, and troubleshoot your webpage instantly.
In this tutorial, we have covered the three most important and frequently used tabs within the inspect element: Styles, Layout, and Event Listener. By mastering these tabs and effectively using Chrome Developer Tools, you can greatly enhance your web development workflow and create high-quality websites that provide an excellent user experience.
Overall, by using the Inspect element feature, Whether you’re looking to troubleshoot front-end problems or just a curious user wanting to explore how websites work, Chrome Developer Tools has everything you need to get started. you can work more efficiently and effectively, saving time and effort in the development process. Happy coding!
Leave a Reply