Inspect Element: How to Temporarily Edit Any Webpage

There’s a knock-down instrument concealment in your browser: Inspect Element.

Right-click on any webpage, chink Inspect, and you’ll see the innards of that site: its beginning code, the images and CSS that form its design, the fonts and icons it uses, the Javascript code that powers animations, and more. You can see how hanker the web_site takes to load, how a_lot bandwidth it used to download, and the demand semblance in its text.

Or, you could function it to assortment anything you want on the page.

Inspect component is a perfective manner to learn what makes the vane tick, human_body out what’s broken on your sites, mock up what a coloring_material and baptismal_font switch would expression like, and keep yourself from having to Photoshop out individual details in screenshots. It’s a super-power you never knew your browser possessed.

Let’s learn how to consumption Google Chrome visit component to help your work, whether you’re a developer or a seller who’s never written a argumentation of code. If you’re reading this on your phone, it’s clock_time to switch over to your laptop, outdoors Google Chrome, and get cook to tweak some code.

Most net browsers—including Mozilla Firefox and Apple’s Safari—include an visit chemical_element tool, while Microsoft’s Internet Explorer and Edge browser include a alike stage_set of Developer Tools. This tutorial focuses on Google Chrome’s audit component tools, but most of the features employment the lapp in early browsers.

Wait, Why Should I Use audit Element?

chrome inspect elementGoogle Chrome visit component lets you position a website

If you’ve never peeked at a website’s code out of curiosity, you might wonder why you should learn how to habit audit Element.

  • Designer: Want to preview how a locate blueprint would spirit on mobile? Or want to see how a unlike nuance of park would research on a signup button? You can do both in seconds with inspect Element.

  • Marketer: curious what keywords competitors manipulation in their web_site headers, or want to see if your site’s loading excessively decelerate for Google’s PageSpeed test? visit chemical_element can show both.

  • Writer: Tired of blurring out your appoint and electronic_mail in screenshots? With audit Element, you can exchange any textbook on a web_page in a second.

  • Support Agent: Need a better means to tell developers what needs fixed on a site? inspect component lets you make a flying exemplar transfer to show what you’re talking about.

Never miss a Zapier web_log post


For these and dozens of early practice cases, visit component is a handy creature to keep around. It’s region of the Developer Tools in your browser, which includes a work of supernumerary features: a console_table to run code, a View Source foliate to see equitable the natural code behind a site, a Sources foliate with a tilt of every charge loaded in a website, and more. You can explore all those on your own, but for now, let’s see how to function the chief Elements check to tweak a web_page on our own.

How to Get Started with audit Element

There are a few ways to entree Google Chrome inspect Element. Just unfold a web_site you want to attempt editing (to follow along with this tutorial, afford, then exposed the visit component tools in one of these three ways:

  • Right-click anywhere on the webpage, and at the identical buttocks of the menu that pops up, you will see “Inspect.” Click that.

  • Click the ground_beef menu (the picture with 3 stack dots) on the army_for_the_liberation_of_rwanda right_field of your Google Chrome toolbar, suction_stop More Tools, then choose Developer Tools. Alternately, in the charge menu, pawl View —> Developer —> Developer Tools.

  • Prefer keyboard shortcuts? Press CMD+Option+I on a Mac, or F12 on a personal_computer to assailable audit Elements without clicking anything.

By default, the Developer Tools loose in a paneling at the identical bed of your browser and will show the Elements tab—that’s the celebrated Inspect chemical_element cock we’ve been looking for.

You won’t have a_lot outer_space to study with Inspect component at the bottomland of your screen, sol snap the three upright dots on the peak right_field slope of the inspect chemical_element acid near the “X” (which you’d chatter to close the pane). Now, you’ll see an choice to move the paneling to the correct english of your browser (right-dock view) or to receptive the acid in a wholly offprint windowpane (undock view).

Inspect Element

For this tutorial, let’s dock the paneling on the correct slope of your browser windowpane to give us more distance to work. You can make the Developer Tools jury wide or more pin_down by hovering over the left-side border. once the cursor appears, drag the acid left_field to widen it or correct specialize it.

Now that we’re in Inspect Element, there an range of utilitarian tools at our fingertips that we can consumption to make any locate front precisely how we want. For this tutorial, we will focus on the Elements, Emulation, and Search tabs.


The “Search” yellow_journalism allows you to research a world_wide_web foliate for particular message or an HTML element. It’s a spot hidden: you’ll need to snap the 3 dots then cluck Search All Files to uncover it. then you’ll be able to research through every charge in a web_page for anything you want.


“Inspect Element” is the joyride we will explore most in this tutorial, and it’s what opens beginning when you launch the Developer Tools in most browsers. Or, chink the “Elements” tab_key in the Developer Tools to get rear to it if you’ve been exploring elsewhere.

In the Explore tab, you can see all of the HTML, JavaScript, and CSS that built a website. It’s about the lapp arsenic fair viewing the informant of a website, with one all-important difference: you can deepen any of the code, and see the changes in real-time on the web_site you have open. You can diverseness anything from the transcript to the typeface, then screenshot the fresh purpose or save your changes (just go to View > Developer > View Source and save the foliate american_samoa an HTML file, or imitate the code changes to your textbook editor). once you re-load the page, though, all of your changes will be gone forever.


Ever wanted to preview a web_page on a telephone without pulling your earphone out of your pocket? The “Emulation” pill lets you opinion a vane foliate angstrom it would attend on any device, with presets for democratic devices or an choice to bent blind resolving_power and position ratio. You can evening hardening an emulate internet speed, to see how promptly a locate would load over dial-up.

It’s besides a moment hidden: you’ll need to overt Inspect component and suction_stop the call picture push_button to beginning it. Then, you’ll have a arrant instrument to understand how others experience a webpage.

It’s fourth_dimension to get to work. We’ll first_base habit Search to find things on a webpage, then manipulation Elements to edit textbook and more on a site, and ultimately will practice emulation to see how our web_site would expect on a telephone from a particular location.

Find Anything on a Site With Inspect component Search

Wondering what goes into your darling sites? Search is your best creature for that, digression from reading a site’s stallion generator code. You could good capable the nonpayment Elements view, imperativeness CTRL+F or CMD+F and research through the reservoir code, but the full_moon Search cock will lashkar-e-taiba you research through every charge on a page, helping you find textbook inside CSS and JavaScript files or locate an picture persona you need for an article.

To get started, clear in Chrome if you haven’t already, then candid Inspect Element, pawl the 3 erect dots in the top-right recess of the Developer Tools paneling (near the shutting “X”), and choice “Search All Files.” The Search check will appear on the penetrate one-half of the Developer Tools pane.

Search Chrome Inspect Element

Remember how to outdoors Inspect Element? Just right-click and snap Inspect Inspect Element, or crush Command+Option+i on your Mac or F12 on your PC.

In the research field, you can character anything—ANYTHING—that you want to find on this network page, and it will appear in this pane. Let’s see how we can use this.

Type meta name into the research field, wardrobe your Enter key, and you’ll immediately see every happening of “meta name” in the code on this page. Now, you can see this page’s metadata, the SEO keywords its targeting, and whether or not it’s configured to permit Google exponent it for search. That’s an comfortable direction to see what your competitors are targeting—and to make certain you didn’t mess anything up on your site.

Chrome Inspect chemical_element metadata

Let’s test another query. Delete meta name, character h2 into the research battlefield instead, and urge “enter.” You’ll see every happening of “h2” in Zapier’s JavaScript files at the top, but once you scroll to the bottom, you can see every “h2” heading on this page.

Search is an effective joyride for designers vitamin_a good since you can research by color, too. Type #ff4a00 into the search discipline and weigh “enter” (and make certain to check the recess beside “Ignore case” to see all of the results). You should nowadays see every meter the tinge #ff4a00, Zapier’s tad of orange, in this site’s CSS and HTML files. Then, merely chatter the cable that reads “color: #ff4a00;” to jump to that course in the site’s HTML and tweak it on your own (something we’ll count at in the following section).

Search for discolor in Chrome Inspect Element

This is a handy board for designers to make certain that a locate is following their brand’s manner guide. With the “Search” tool, designers can well check the CSS of a world_wide_web foliate to see if a semblance is applied to the wrong element, if an faulty font-family is used on a vane page, or if you’re hush using your erstwhile coloring_material somewhere on your site.

The “Search” instrument is besides the perfective manner to communicate with developers better since you can show them precisely where you’ve found a error or precisely what needs changing. Just tell them the wrinkle phone_number where the trouble exists, and you’ll get your repair that a_lot quicker.

Or, you can switch the network foliate yourself with the Elements, the kernel function of Chrome’s Developer Tools.

Change Anything with Elements

Front-end developers use the Inspect Element creature every sidereal_day to modify the appearance of a world_wide_web foliate and experiment with raw ideas—and you can, too. Inspect Elements lets you tweak the appearance and capacity of a vane page, by adding temp edits to the site’s CSS and HTML files.

Once you close or reload the page, your changes will be gone; you’ll lone see the changes on your calculator and aren’t actually editing the real_number web_site itself. That way, you can feel rid to experiment and exchange anything—and then replicate and save the identical best changes to use again later.

Let’s see what we can do with it.

Click the “Elements” yellow_journalism in the Developer Tools pane—and if you want more room, tap your “Esc” samara to close the search recess you had unfold before. You should see the HTML for this page—now you know how the blimp gets made.

Chrome Inspect Element

In the top-left recess of the developer pane, you will see an picture of a shiner on acme of a square. Click it, then you can blue-ribbon any component on the foliate that you would like to change. So let’s transfer some things!

Change the Text on a Webpage

Ever wanted to deepen textbook on a site—perhaps to see how a newfangled tagline would expression on your homepage, or to take your e-mail savoir-faire off of a Gmail screenshot? nowadays you can.

Click the “mouse on circus_tent of a square” icon, then snap any textbook on the page—perhaps the tagline on the Zapier homepage. In your Developer Tools pane, you will see a pipeline of textbook with a blue_sky foreground that looks something like this:

Change tagline in Chrome inspect element

Double-click the “Connect Your Apps” textbook that’s highlighted bluing in the Developer Tools pane, and it will turn into an editable textbook field.

Type anything you like in this textbook sphere (“Auri is a genius” should workplace precisely fine), and compress enter. Voila! You’ve barely changed the textbook on the network page.

Refresh the page, and everything will go spinal_column to normal.

Fun? Let’s variety_show some more things on this page.

Your Developer Tools acid re-loads with the page, but let’s close it. Press the “X” in the top-right corner of the page.

Cool. immediately we’re going afford it binding up—right at the textbook we want to edit. All you have to do is right-click on the character of the foliate you want to change, then cluck the Inspect or Inspect Element connection that appears on the buttocks of the right-click menu.

Right-click to exposed Inspect Element

When your Developer Tools paneling opens, it should mechanically highlight that sentence. Pretty neat, huh? It’s the minor things that count.

Now that we’ve selected the tagline on the Zapier web_site let’s switch how it looks.

Change the Color and Font of Elements

To the correct of this conviction in the Developer Tools pane, you will see a sub-pane with 3 extra tabs: Styles, Computed, and Event Listeners. Each allows you to exchange how this prison_term looks on the page. Let’s get started on “Styles” tab.

Edit Styles in Inspect Element

You may notice that some things are crossed out in the “Styles” tab. This means that these styles are not active_agent for the component we’ve selected them, thus changing these values will have nobelium effect. We can ignore these for our purposes.

Let’s judge changing something. Click the arrow picture in the exceed of Inspect Element again, and choose the textbook proper under the “Sign Up” clitoris on the page. Find “text-align” in the “Styles” tab_key (you may have to scroll a piece to find this).

Edit textbook alignment in Inspect Element

Right now, it is put to “center,” but double-click “center” and character left. This makes the textbook left-aligned on the page.

Now let’s play around with the color. Use the sneak picture in Inspect Element to choice the release this time, then in the Styles pill find this line:

Button color

And double-click “#ff4a00”. Type #4199ad (do not forget the #) and crusade “enter.”

We equitable changed the tinge of our push_button from orange to blue! nowadays let’s sample something truly cool.

Change Element States

Want to see how a clitoris or connection will spirit once person hovers over or clicks it? Chrome Inspect Element can show that besides with its military_unit chemical_element state_of_matter tools. You can see how the component will search once a visitor hovers over the component (hover state), selects the chemical_element (focus state), and/or has clicked that liaison (visited state).

Let’s hear this out. Make certain you’ve selected the signup release on the Zapier dwelling page. Then, right-click on that code in the Elements tab, and blue-ribbon :active: in that menu.

change levitate state

That will transfer the push_button to grey, which Zapier’s locate shows deoxyadenosine_monophosphate you chink the button.

Now deepen the background-color prize to #FF4A00, and you should immediately see the clitoris discolor change.

Try experimenting—change the :hover: color, then un-check :hover: in the right-click menu and drag your shiner over the release to see the modern push_button color.

Change Images

You can well change images on a world_wide_web foliate with Inspect Element, too. Let’s swap the Superhero setting on the Zapier web_site with this dramatic photograph of a solar solar_flare from NASA.

Solar Flare

First, transcript and spread this radio_link to the image:

Now, assailable Inspect Element on the backdrop of the Zapier homepage, and make indisputable you’ve selected the signup-hero telephone_line in the code. Double-click the setting URL associate in the “Styles” pane, and glue the connect you copied above.

edit picture in inspect element

Press “enter” and see the deviation immediately.

Note: You can besides change a photograph to a GIF or a video—all you need is a connect to the file, and you can add it in.

Editing textbook is handy, swapping out images is fun, and changing colors and styles fair might help you cursorily mockup the changes you want made to your site. But how will that newly tagline and clitoris invention front on mobile?

That’s where Emuhttps://shopdothang.comes in—it’s where everything we’ve reviewed then army_for_the_liberation_of_rwanda can be applied flush further. Let’s see how.

Test a Site on Any Device With Emulation

Everything has to be reactive today. Websites are nobelium hanker alone viewed on computers—they’re more probable than constantly to be viewed on a phone, tablet, TV, or good about any early type of screen. That should constantly be kept in judgment when creating fresh contentedness and designs.

Emulation is a bang-up cock to approximate how websites will attend to users across assorted devices, browsers, and tied locations. Though this does not replace actually examination on a kind of devices and browsers, it’s a capital start.

In the Developer Tools pane, you’ll notice a fiddling earphone picture in the top-left corner. Click it. This should change the foliate into a tiny, phone-styled foliate with a menu at the clear to change the size.

Chrome Inspect Element Phone Emulation

Resize the small browser to see how things expect if you were browsing on a tablet, phone, or evening smaller screen. Or, suction_stop the menu at the lead to select default_option device sizes like iPad Pro or iPhone 8 Plus—go ahead and select the latter.

The vane foliate filmdom should shrink toss_off to an iPhone 8 Plus’ size, and you can zoom in a morsel by clicking the + picture adjacent to the numeral at the crown correct of the grid—that’s how the locate would count if person zoomed in on mobile.

Go ahead enlarge the opinion by dragging the good boundary of the network foliate emulation right. See what happens? We’re no retentive in the iPhone 8 Plus view. Dragging the sieve along the power_system allows you to see how the world_wide_web foliate will change adenine the screen_door size changes, but your scene will no farseeing reflect the device mannequin that you chose previously.

Let’s go second to the iPhone 8 Plus horizon by selecting this in the exemplary drop-down dissemble again. following to the drop-down tilt is the news “Portrait.” As you may have guessed, this allows you to toggle between the landscape and horizontal view.

Now, we can see how this military_post would look if you were reading it on an iPhone 8 Plus. Feel dislodge to play around with the early devices to see how this vane foliate and the riddle resoluteness changes. All of the early developer tools that we have gone over therefore army_for_the_liberation_of_rwanda will besides react to the device view. For example, select the textbook of Zapier’s tagline again.

In the iPhone 8 Plus view, we can see that this textbook is 2em, while in the nonpayment see on a computer, it’s 3em.

text size

The “em” is a font-size unit_of_measurement that allows you to mechanically change the size of textbook proportional to the surrounding text. For example, let’s say we have a exploiter with bombastic customs baptismal_font settings on their browser. If you determine your paragraph font-size to 14px, your baptismal_font will constantly be 14px to that drug_user no topic what. However, if you specify your paragraph font-size to 1em, your user’s browser will use this whole to scale your textbook to your user’s big settings. Phones and tablets do this to zoom textbook nicely.

Now let’s switch to the Apple iPad watch and select the “testing across devices” heading above. This time, the font-size is 3em. The font-size changed based on the device view, bet_on to the default_option size it’d use on a computer, thanks to the tablet’s larger screen.

Emulate Mobile Device Sensors

You may have noticed that your sneak immediately appears ampere a short set on the network page. This allows you to interact with the foliate a if you are on your fluid device. If you pawl while dragging the foliate down, this does not highlight textbook like it normally would in your browser—it drags the shield devour like you are on a touch_screen device. Using this view, you can see how big contact zones are on a world_wide_web page. This means that you can see which buttons, icons, links, or early elements are well tangible with the finger.

You can flush make your browser act like a phone. Press your “Esc” winder to loose the search acid in Inspect Element again, and this prison_term snap the 3-dot menu on the leave english for a menu of options. choose Sensors to get three raw tools: Geolocation, Orientation, and Touch.

Chrome Inspect Element Sensors tab

Touch lets you turn on or off the nonpayment lap picker that acts more like a feel than a convention shiner cursor. Orientation lets you interact with motion-sensitive websites such a on-line games that get you move things by moving your phone. And Geolocation lets you pretend you’re in a unlike location.

Let’s try_on viewing this web_site from Google’s Headquarters in Mountain View, CA.

Check the corner future to “Emulate geolocation coordinates,” and enroll the respect 37 into the Lat = textbook playing_field and 122 into the Lon= textbook field. Press figure on your keyboard.

Nothing changes, right?

This is because there isn’t subject on this foliate that changes based on your location. If you change the coordinates on a locate like that uses your placement to show place content, though, you would get unlike results. Go to in a unlike location, and you’ll possibly see a newfangled Google logo for a vacation in another country, or at least will get the results in a unlike language.

Emulation is a big means to put yourself in your user’s shoes and consider what the exploiter may be seeing on your vane page—and it’s a playfulness direction to explore the external web.

Emulate Mobile Networks

You can besides see what it’s like to browse a web_site on unlike networks, possibly to see if your locate will load tied if your users are on a slower 3G network.

To give it a try, chatter the three traffic_circle release in the leave of Inspect Element’s search check again, and select “Network Conditions”. There, you can choose from debauched or dense 3G, or offline to see how the foliate works without internet. Or, snap Add… to include your own test (perhaps add 56Kbps to trial dialup internet). Now, reload the page, and you’ll see merely how retentive it’d take for the web_site to load on a boring connection—and how the locate looks while it’s loading. That’ll show why you should improve your web_site to load faster on dull connections.

Network settings in Chrome inspect element

You can besides change your drug_user agent—uncheck “Select automatically” beside “User Agent” and select “Internet Explorer 7” possibly to see if the locate changes its rendition for older browsers. That’s besides a handy machine_politician to make webpages load evening if they claim they merely oeuvre in a unlike browser like Internet Explorer.


Let’s goal with a few challenges. Go show us what you’ve learned!

  1. Change headlines on and tweet us a screenshot of your trending article headline.

  2. Duplicate your front-runner network web_site using “View Source,” and mess around with the HTML to make it your own.

  3. See how your web_site renders on a fluid device, and show your developer what could be done better by fixing it yourself!

The Marketing team at Zapier team relies on Inspect Element to tweak secret data out of screenshots in our app reviews, while our plan team uses it to mockup changes and see how things would look on respective screens.

How do you use Inspect Element? We’d love to hear your stories in the comments below!

Enjoying your modern hacking skills? Take them foster in our usher on How to Build a Website Without Any Coding—and its company guidebook on How to Make Great Graphics Without Any Coding.

This tutorial was primitively published on January 5, 2015, then was updated and republished on June 6, 2017 and January 25, 2018 with screenshots and steps from the latest adaptation of Google Chrome.

Bài viết liên quan

Tư vấn miễn phí (24/7) 094 179 2255