Leveraging Page Inspector

In this lesson, we'll understand how to use a web browser’s page inspector to analyze our HTML, CSS, and JavaScript code. Let's begin!

You can learn a lot from looking into the source code of existing web pages.

Practically all web browsers support viewing that. However, when using JavaScript, the DOM of the page may change at run time and its source may not reflect the current structure of the page. Most browsers provide tools built directly into the browser to allow developers to examine the momentary state of the page structure. However, these tools are a bit different depending on your preferred browser.

In this exercise, you will learn to examine the DOM of the current page using the Developer Tools window of Chrome. Microsoft Edge and Firefox also have their own tools to discover the DOM.

Get hands-on with 1200+ tech skills courses.