Learning how to inspect an element.

Looking at How a Page Is Built

I spent most of my career as a systems engineer, and if there’s one thing I’ve learned, it’s that people love to charge you a premium for things that are actually quite simple. I see these “expert” tutorials online that make learning how to inspect an element sound like you need a degree in computer science or a subscription to some overpriced developer suite. They wrap a basic browser function in layers of jargon just to make you feel like you’re missing something. It’s a classic upsell, and frankly, it’s exhausting. You don’t need a consultant to tell you why a button is the wrong shade of blue; you just need to know where to look.

I’m not here to sell you a course or a fancy new tool. My goal is to show you how to peel back the curtain using nothing but what you already have sitting in front of you. I’ll walk you through the actual mechanics of how to inspect an element so you can stop guessing and start seeing the truth of any webpage. We’ll keep it methodical, we’ll keep it honest, and we’ll get it done in an afternoon.

The Inspect Element Chrome Shortcut for Fast Results

The Inspect Element Chrome Shortcut for Fast Results

Now, I’ve never been one for memorizing long, convoluted menu paths. If I have to click through three different sub-menus just to see why a button is misaligned, I’ve already lost my patience. If you’re using Chrome, you don’t need to hunt through the settings. Just hit `Ctrl + Shift + I` (or `Cmd + Option + I` on a Mac) and you’re in. If you want to be even more surgical, just right-click the exact bit of text or image that’s bothering you and select “Inspect.” It’s the fastest way to jump straight into the guts of the page without any of the fluff.

Once that panel pops up, you’re essentially looking at the live blueprint of the site. This is where you can actually modify CSS in real time to see if a different font size or color fixes your layout issue before you ever touch your actual code files. It’s a bit like adjusting the focus on my telescope before I commit to a long-exposure shot; you want to see the results right now to know if you’re on the right track. It makes debugging web pages with DevTools feel less like a chore and more like a quick sanity check.

View Page Source vs Inspect Element Knowing the Difference

View Page Source vs Inspect Element Knowing the Difference

Now, don’t go confusing “View Page Source” with the actual inspection tool. I see people make this mistake all the time, and it leads to a lot of unnecessary frustration. When you click “View Page Source,” you’re looking at a static snapshot—the raw code the server sent to your machine. It’s like looking at a printed photograph of a car engine; you can see where the bolts are, but you can’t turn any of them. It’s fine for a quick glance, but it won’t help you if you’re actually trying to figure out why a layout is breaking.

If you want to actually get your hands dirty, you need to be inspecting DOM structure through the developer tools instead. This is where the magic happens. Unlike the static source code, the inspector shows you the “live” version of the site—the one that has been modified by JavaScript and rendered by your browser. This is the only way to effectively modify CSS in real time to see how a change looks before you commit to it in your actual stylesheet. Think of it as the difference between reading a blueprint and actually standing inside the building.

A Few Ways to Keep from Getting Lost in the Code

  • Don’t let the wall of text scare you. When you first open the panel, it looks like a mess of brackets and gibberish, but just use the little arrow icon in the top left of the inspector. Click that, then click whatever part of the website you’re actually curious about. It’ll jump you straight to the right line so you aren’t scrolling aimlessly.
  • Use the Styles pane to play god. If you want to see how a button would look if it were bright red instead of navy blue, don’t go changing the actual files. Just find the color code in the Styles tab, click it, and type in a new one. It’s temporary, which is exactly why it’s perfect for testing ideas without breaking anything.
  • Watch out for the “Computed” tab. Sometimes you’ll try to change a font size or a margin and nothing happens. That’s usually because some other piece of code is overriding your change. The Computed tab shows you what the browser is actually doing, not just what the code says it wants to do. It cuts through the noise.
  • Keep an eye on the Console if things aren’t loading right. If you’re inspecting an element and it looks broken, flick over to the Console tab. If you see a sea of red text, those are errors. It’s often a dead link or a script that failed to load—usually something a hosting company would try to charge you a “maintenance fee” to find for you.
  • Use the device toggle to see the mobile view. Most people build sites on big monitors and forget that half the world is looking at them through a cracked phone screen. There’s a small icon that looks like a phone and a tablet; click it, and you can see how your layout holds up on a mobile device without needing to own fifty different gadgets.

The Bottom Line

Don’t let the jargon intimidate you; Inspect Element is just a way to peek under the hood without breaking the engine.

Use “View Page Source” when you want to see the whole blueprint, but stick to “Inspect” when you want to tinker with specific parts.

You don’t need an expensive developer or a fancy course to understand how a page is built—just a right-click and a bit of curiosity.

Stop Letting the Code Scare You

Stop Letting the Code Scare You.

At the end of the day, whether you’re using the Chrome shortcut to dive straight into the guts of a page or choosing between the raw View Source and the interactive Inspect tool, the goal is the same: demystification. You don’t need a computer science degree to understand how a button is styled or where a specific piece of text lives in the HTML. I’ve spent decades watching people get intimidated by what they see on their screens, but once you realize that everything is just a series of organized instructions, the mystery evaporates. You’ve learned the difference between the static source code and the live, breathing DOM, and that is more than enough to get your hands dirty without paying a consultant to do it for you.

My advice? Don’t just read about it; go out there and start poking at things. Break something in your local view, change a color, move a div, and see what happens. You won’t break the actual internet, I promise. The web was built by people who weren’t afraid to tinker, and you shouldn’t be either. Once you realize that the “magic” behind a website is just logic and structure, you’ll stop being a passive consumer and start becoming a builder. Grab a coffee, open up your browser, and start exploring—the best way to learn is to see how the engine actually runs.

About Halvard Boateng

A first website needs a domain, a host and an afternoon. The rest is upselling.