Inspect Element: How to Temporarily Edit Any Webpage (2024)

There's a powerful tool hiding in your browser: Inspect Element.

Right-click on any webpage, click Inspect, and you'll see the innards of that site: its source 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 long the site takes to load, how much bandwidth it used to download, and the exact color in its text.

Or, you could use it to change anything you want on the page.

Inspect Element is a perfect way to learn what makes the web tick, figure out what's broken on your sites, mock up what a color and font change would look like, and keep yourself from having to Photoshop out private details in screenshots. It's a super-power you never knew your browser possessed.

Let's learn how to use Google Chrome Inspect Element to help your work, whether you're a developer or a marketer who's never written a line of code. If you're reading this on your phone, it's time to switch over to your laptop, open Google Chrome, and get ready to tweak some code.

Most web browsers—including Mozilla Firefox and Apple's Safari—include an Inspect Element tool, while Microsoft's Internet Explorer and Edge browser include a similar set of Developer Tools. This tutorial focuses on Google Chrome's Inspect Element tools, but most of the features work the same in other browsers.

Wait, Why Should I Use Inspect Element?

Inspect Element: How to Temporarily Edit Any Webpage (1)

If you've never peeked at a website's code out of curiosity, you might wonder why you should learn how to use Inspect Element.

  • Designer: Want to preview how a site design would look on mobile? Or want to see how a different shade of green would look on a signup button? You can do both in seconds with Inspect Element.

  • Marketer: Curious what keywords competitors use in their site headers, or want to see if your site's loading too slow for Google's PageSpeed test? Inspect Element can show both.

  • Writer: Tired of blurring out your name and email in screenshots? With Inspect Element, you can change any text on a webpage in a second.

  • Support Agent: Need a better way to tell developers what needs fixed on a site? Inspect Element lets you make a quick example change to show what you're talking about.

For these and dozens of other use cases, Inspect Element is a handy tool to keep around. It's part of the Developer Tools in your browser, which includes a number of extra features: a console to run code, a View Source page to see just the raw code behind a site, a Sources page with a list of every file loaded in a website, and more. You can explore all those on your own, but for now, let's see how to use the main Elements tab to tweak a webpage on our own.

How to Get Started with Inspect Element

There are a few ways to access Google Chrome Inspect Element. Just open a website you want to try editing (to follow along with this tutorial, open Zapier.com), then open the Inspect Element tools in one of these three ways:

  • Right-click anywhere on the webpage, and at the very bottom of the menu that pops up, you will see "Inspect." Click that.

  • Click the hamburger menu (the icon with 3 stacked dots) on the far right of your Google Chrome toolbar, click More Tools, then select Developer Tools. Alternately, in the file menu, click View —> Developer —> Developer Tools.

  • Prefer keyboard shortcuts? Press CMD+Option+I on a Mac, or F12 on a PC to open Inspect Elements without clicking anything.

By default, the Developer Tools open in a pane at the very bottom of your browser and will show the Elements tab—that's the famed Inspect Element tool we've been looking for.

You won't have much space to work with Inspect Element at the bottom of your screen, so click the three vertical dots on the top right-hand side of the inspect element pane near the "X" (which you'd click to close the pane). Now, you'll see an option to move the pane to the right-hand side of your browser (right-dock view) or to open the pane in a completely separate window (undock view).

Inspect Element: How to Temporarily Edit Any Webpage (2)

For this tutorial, let's dock the pane on the right side of your browser window to give us more space to work. You can make the Developer Tools panel wider or more narrow by hovering over the left-side border. Once the cursor appears, drag the pane left to widen it or right narrow it.

Now that we're in Inspect Element, there an array of useful tools at our fingertips that we can use to make any site look exactly how we want. For this tutorial, we will focus on the Elements, Emulation, and Search tabs.

Search

The "Search" tab allows you to search a web page for specific content or an HTML element. It's a bit hidden: you'll need to click the 3 dots then click Search All Files to uncover it. Then you'll be able to search through every file in a webpage for anything you want.

Elements

"Inspect Element" is the tool we will explore most in this tutorial, and it's what opens first when you launch the Developer Tools in most browsers. Or, click the "Elements" tab in the Developer Tools to get back 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 almost the same as just viewing the source of a website, with one crucial difference: you can change any of the code, and see the changes in real-time on the site you have open. You can change anything from the copy to the typeface, then screenshot the new design or save your changes (just go to View > Developer > View Source and save the page as an HTML file, or copy the code changes to your text editor). Once you re-load the page, though, all of your changes will be gone forever.

Emulation

Ever wanted to preview a webpage on a phone without pulling your phone out of your pocket? The "Emulation" tab lets you view a web page as it would look on any device, with presets for popular devices or an option to set screen resolution and aspect ratio. You can even set an emulated internet speed, to see how quickly a site would load over dial-up.

It's also a bit hidden: you'll need to open Inspect Element and click the phone icon button to start it. Then, you'll have a perfect tool to understand how others experience a webpage.

It's time to get to work. We'll first use Search to find things on a webpage, then use Elements to edit text and more on a site, and finally will use Emulation to see how our site would look on a phone from a specific location.

Find Anything on a Site With Inspect Element Search

Wondering what goes into your favorite sites? Search is your best tool for that, aside from reading a site's entire source code. You could just open the default Elements view, press CTRL+F or CMD+F and search through the source code, but the full Search tool will let you search through every file on a page, helping you find text inside CSS and JavaScript files or locate an icon image you need for an article.

To get started, open Zapier.com in Chrome if you haven't already, then open Inspect Element, click the 3 vertical dots in the top-right corner of the Developer Tools pane (near the closing "X"), and select "Search All Files." The Search tab will appear on the bottom half of the Developer Tools pane.

Inspect Element: How to Temporarily Edit Any Webpage (3)

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

In the search field, you can type anything—ANYTHING—that you want to find on this web page, and it will appear in this pane. Let's see how we can use this.

Type meta name into the search field, press your Enter key, and you'll immediately see every occurrence 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 let Google index it for search. That's an easy way to see what your competitors are targeting—and to make sure you didn't mess anything up on your site.

Inspect Element: How to Temporarily Edit Any Webpage (4)

Let's try another query. Delete meta name, type h2 into the search field instead, and press "enter." You'll see every occurrence of "h2" in Zapier's JavaScript files at the top, but once you scroll to the bottom, you can see every "h2" header on this page.

Search is an effective tool for designers as well since you can search by color, too. Type #ff4a00 into the search field and press "enter" (and make sure to check the box beside "Ignore case" to see all of the results). You should now see every time the color #ff4a00, Zapier's shade of orange, in this site's CSS and HTML files. Then, just click the line that reads "color: #ff4a00;" to jump to that line in the site's HTML and tweak it on your own (something we'll look at in the next section).

Inspect Element: How to Temporarily Edit Any Webpage (5)

This is a handy way for designers to make sure that a site is following their brand's style guide. With the "Search" tool, designers can easily check the CSS of a web page to see if a color is applied to the wrong element, if an incorrect font-family is used on a web page, or if you're still using your old color somewhere on your site.

The "Search" tool is also the perfect way to communicate with developers better since you can show them exactly where you've found a mistake or exactly what needs changing. Just tell them the line number where the problem exists, and you'll get your fix that much quicker.

Or, you can change the web page yourself with the Elements, the core part of Chrome's Developer Tools.

Change Anything with Elements

Front-end developers use the Inspect Element tool every day to modify the appearance of a web page and experiment with new ideas—and you can, too. Inspect Elements lets you tweak the appearance and content of a web page, by adding temporary edits to the site's CSS and HTML files.

Once you close or reload the page, your changes will be gone; you'll only see the changes on your computer and aren't actually editing the real website itself. That way, you can feel free to experiment and change anything—and then copy and save the very best changes to use again later.

Let's see what we can do with it.

Click the "Elements" tab in the Developer Tools pane—and if you want more room, tap your "Esc" key to close the search box you had open before. You should see the HTML for this page—now you know how the sausage gets made.

Inspect Element: How to Temporarily Edit Any Webpage (6)

In the top-left corner of the developer pane, you will see an icon of a mouse on top of a square. Click it, then you can select any element on the page that you would like to change. So let's change some things!

Change the Text on a Webpage

Ever wanted to change text on a site—perhaps to see how a new tagline would look on your homepage, or to take your email address off of a Gmail screenshot? Now you can.

Click the "mouse on top of a square" icon, then click any text on the page—perhaps the tagline on the Zapier homepage. In your Developer Tools pane, you will see a line of text with a blue highlight that looks something like this:

Inspect Element: How to Temporarily Edit Any Webpage (7)

Double-click the "Connect Your Apps" text that's highlighted blue in the Developer Tools pane, and it will turn into an editable text field.

Type anything you like in this text field ("Auri is a genius" should work just fine), and press enter. Voila! You've just changed the text on the web page.

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

Fun? Let's change some more things on this page.

Your Developer Tools pane re-loads with the page, but let's close it. Press the "X" in the top-right corner of the page.

Cool. Now we're going open it back up—right at the text we want to edit. All you have to do is right-click on the part of the page you want to change, then click the Inspect or Inspect Element link that appears on the bottom of the right-click menu.

Inspect Element: How to Temporarily Edit Any Webpage (8)

When your Developer Tools pane opens, it should automatically highlight that sentence. Pretty neat, huh? It's the little things that count.

Now that we've selected the tagline on the Zapier site let's change how it looks.

Change the Color and Font of Elements

To the right of this sentence in the Developer Tools pane, you will see a sub-pane with 3 additional tabs: Styles, Computed, and Event Listeners. Each allows you to change how this sentence looks on the page. Let's get started on "Styles" tab.

Inspect Element: How to Temporarily Edit Any Webpage (9)

You may notice that some things are crossed out in the "Styles" tab. This means that these styles are not active for the element we've selected them, so changing these values will have no effect. We can ignore these for our purposes.

Let's try changing something. Click the arrow icon in the top of Inspect Element again, and select the text right under the "Sign Up" button on the page. Find "text-align" in the "Styles" tab (you may have to scroll a bit to find this).

Inspect Element: How to Temporarily Edit Any Webpage (10)

Right now, it is set to "center," but double-click "center" and type left. This makes the text left-aligned on the page.

Now let's play around with the color. Use the mouse icon in Inspect Element to select the button this time, then in the Styles tab find this line:

Inspect Element: How to Temporarily Edit Any Webpage (11)

And double-click "#ff4a00". Type #4199ad (do not forget the #) and press "enter."

We just changed the color of our button from orange to blue! Now let's try something really cool.

Change Element States

Want to see how a button or link will look once someone hovers over or clicks it? Chrome Inspect Element can show that too with its force element state tools. You can see how the element will look once a visitor hovers over the element (hover state), selects the element (focus state), and/or has clicked that link (visited state).

Let's try this out. Make sure you've selected the signup button on the Zapier home page. Then, right-click on that code in the Elements tab, and select :active: in that menu.

Inspect Element: How to Temporarily Edit Any Webpage (12)

That will change the button to grey, which Zapier's site shows as you click the button.

Now change the background-color value to #FF4A00, and you should instantly see the button color change.

Try experimenting—change the :hover: color, then un-check :hover: in the right-click menu and drag your mouse over the button to see the new button color.

Change Images

You can easily change images on a web page with Inspect Element, too. Let's swap the Superhero background on the Zapier site with this dramatic photo of a solar flare from NASA.

Inspect Element: How to Temporarily Edit Any Webpage (13)

First, copy and paste this link to the image:

https://c1.staticflickr.com/9/8314/7931831962_7652860bae_b.jpg

Now, open Inspect Element on the background of the Zapier homepage, and make sure you've selected the signup-hero line in the code. Double-click the background URL link in the "Styles" pane, and paste the link you copied above.

Inspect Element: How to Temporarily Edit Any Webpage (14)

Press "enter" and see the difference immediately.

Note: You can also change a photo to a GIF or a video—all you need is a link to the file, and you can add it in.

Editing text is handy, swapping out images is fun, and changing colors and styles just might help you quickly mockup the changes you want made to your site. But how will that new tagline and button design look on mobile?

That's where Emulation comes in—it's where everything we've reviewed so far can be applied even further. Let's see how.

Test a Site on Any Device With Emulation

Everything has to be responsive today. Websites are no longer only viewed on computers—they're more likely than ever to be viewed on a phone, tablet, TV, or just about any other type of screen. That should always be kept in mind when creating new content and designs.

Emulation is a great tool to approximate how websites will look to users across various devices, browsers, and even locations. Though this does not replace actually testing on a variety of devices and browsers, it's a great start.

In the Developer Tools pane, you'll notice a little phone icon in the top-left corner. Click it. This should change the page into a tiny, phone-styled page with a menu at the top to change the size.

Inspect Element: How to Temporarily Edit Any Webpage (15)

Resize the small browser to see how things look if you were browsing on a tablet, phone, or even smaller screen. Or, click the menu at the top to select default device sizes like iPad Pro or iPhone 8 Plus—go ahead and select the latter.

The web page screen should shrink down to an iPhone 8 Plus' size, and you can zoom in a bit by clicking the + icon next to the number at the top right of the grid—that's how the site would look if someone zoomed in on mobile.

Go ahead enlarge the view by dragging the right edge of the web page emulation right. See what happens? We're no longer in the iPhone 8 Plus view. Dragging the screen along the grid allows you to see how the web page will change as the screen size changes, but your view will no longer reflect the device model that you chose previously.

Let's go back to the iPhone 8 Plus view by selecting this in the model drop-down list again. Next to the drop-down list is the word "Portrait." As you may have guessed, this allows you to toggle between the landscape and horizontal view.

Now, we can see how this post would look if you were reading it on an iPhone 8 Plus. Feel free to play around with the other devices to see how this web page and the screen resolution changes. All of the other developer tools that we have gone over so far will also react to the device view. For example, select the text of Zapier's tagline again.

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

Inspect Element: How to Temporarily Edit Any Webpage (16)

The "em" is a font-size unit that allows you to automatically change the size of text relative to the surrounding text. For example, let's say we have a user with large custom font settings on their browser. If you set your paragraph font-size to 14px, your font will always be 14px to that user no matter what. However, if you set your paragraph font-size to 1em, your user's browser will use this unit to scale your text to your user's large settings. Phones and tablets do this to zoom text nicely.

Now let's switch to the Apple iPad view and select the "testing across devices" header above. This time, the font-size is 3em. The font-size changed based on the device view, back to the default size it'd use on a computer, thanks to the tablet's larger screen.

Emulate Mobile Device Sensors

You may have noticed that your mouse now appears as a little circle on the web page. This allows you to interact with the page as if you are on your mobile device. If you click while dragging the page down, this does not highlight text like it normally would in your browser—it drags the screen down like you are on a touchscreen device. Using this view, you can see how large touch zones are on a web page. This means that you can see which buttons, icons, links, or other elements are easily touchable with the finger.

You can even make your browser act like a phone. Press your "Esc" key to open the search pane in Inspect Element again, and this time click the 3-dot menu on the left side for a menu of options. Select Sensors to get three new tools: Geolocation, Orientation, and Touch.

Inspect Element: How to Temporarily Edit Any Webpage (17)

Touch lets you turn on or off the default circle selector that acts more like a finger than a normal mouse cursor. Orientation lets you interact with motion-sensitive websites such as online games that let you move things by moving your phone. And Geolocation lets you pretend you're in a different location.

Let's try viewing this site from Google's Headquarters in Mountain View, CA.

Check the box next to "Emulate geolocation coordinates," and enter the value 37 into the Lat = text field and 122 into the Lon= text field. Press enter on your keyboard.

Nothing changes, right?

This is because there isn't content on this page that changes based on your location. If you change the coordinates on a site like Groupon.com that uses your location to show localized content, though, you would get different results. Go to Google.com in a different location, and you'll perhaps see a new Google logo for a holiday in another country, or at least will get the results in a different language.

Emulation is a great way to put yourself in your user's shoes and consider what the user may be seeing on your web page—and it's a fun way to explore the international web.

Emulate Mobile Networks

You can also see what it's like to browse a site on different networks, perhaps to see if your site will load even if your users are on a slower 3G network.

To give it a try, click the three circle button in the left of Inspect Element's search tab again, and select "Network Conditions". There, you can choose from fast or slow 3G, or offline to see how the page works without internet. Or, click Add... to include your own testing (perhaps add 56Kbps to test dialup internet). Now, reload the page, and you'll see just how long it'd take for the site to load on a slow connection—and how the site looks while it's loading. That'll show why you should improve your site to load faster on slow connections.

Inspect Element: How to Temporarily Edit Any Webpage (18)

You can also change your user agent—uncheck "Select automatically" beside "User Agent" and select "Internet Explorer 7" perhaps to see if the site changes its rendering for older browsers. That's also a handy hack to make webpages load even if they claim they only work in a different browser like Internet Explorer.

Challenges

Let's end with a few challenges. Go show us what you've learned!

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

  2. Duplicate your favorite web site using "View Source," and mess around with the HTML to make it your own.

  3. See how your website renders on a mobile 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 private information out of screenshots in our app reviews, while our design team uses it to mockup changes and see how things would look on various screens.

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

Enjoying your new hacking skills? Take them further in our guide on How to Build a Website Without Any Coding—and its companion guide on How to Make Great Graphics Without Any Coding.

This tutorial was originally 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 version of Google Chrome.

Inspect Element: How to Temporarily Edit Any Webpage (2024)

FAQs

Can I Edit website from inspect? ›

Inspect element is one of the developer tools incorporated into the Google Chrome, Firefox, Safari, and Internet Explorer web browsers. By accessing this tool, you can actually view — and even edit — the HTML and CSS source code behind the web content.

Is inspect element temporary? ›

Inspect Element lets visitors access and temporarily edit a website's front-end source code, including its HTML, CSS, JavaScript, and image files.

Are inspect element changes permanent? ›

Permanent Inspect Element. This extension lets you save the changes you make to a static web page using Inspect Element to remain there even after you refresh the page.

How do I temporarily edit a website? ›

All you have to do is right-click on the part of the page you want to change, then click the Inspect or Inspect Element link that appears on the bottom of the right-click menu. When your Developer Tools pane opens, it should automatically highlight that sentence. Pretty neat, huh?

Can you edit the code of a website? ›

Yes, you can edit the source code of a web page directly in the browser using developer tools and the changes will be visible, but only to you, as the changes are made to the files downloaded by your browser.

Can websites disable inspect element? ›

You can't disable it completely. Web Console Inspectors are designed for HTML and JavaScript debugging. They do this by displaying the live DOM object on the web page. This means that it exposes the HTML code of everything you see on the web, even if it is created by JavaScript.

Can websites see if you inspect element? ›

Inspect element does not make any changes to website server. Inspect element tool provided to make developers see the changes/fixes on temporarily. Once you refresh your browser the changes are lost. So the owner of the website will never know that you used the inspect tool or not.

What is the opposite of inspect? ›

What is the opposite of inspect?
answerforget
ignoreneglect
overlookreply
disregardlook away
missskip
27 more rows

How do I edit a web page and save it? ›

Right click on an empty space on the web page and choose View Page Source or View Source. The resulting popup window (or tab) will show you the underlying HTML structure of the page. You may save this to your hard drive or go back and save the entire web page to your computer.

What are some Inspect Element tricks? ›

7 Playful Things You Can Do With Inspect Element
  • Download Images and Videos. ...
  • Change Headers and Text to Prank Friends. ...
  • Change the Colors and Font of a Webpage. ...
  • View Hidden Passwords. ...
  • View the Mobile Version of a Website. ...
  • Pick Colors From a Website. ...
  • Take Screenshots Without Any Extensions.
22 Sept 2021

How do I inspect and edit elements in Chrome? ›

One of the easiest ways to inspect a specific web element in Chrome is to simply right-click on that particular element and select the Inspect option. Clicking on the Inspect option from the right-click menu will directly open the Developer tools including the editor, Console, Sources, and other tools.

Can I edit a website that is not mine? ›

Yes, any web page. Even ones that aren't yours! This means you can modify the HTML and CSS (also known as source code) right in your browser. Keep in mind, this only modifies the local version on your computer and doesn't actually rewrite anything on the server.

Is it legal to copy a website code? ›

If you copy elements from another website, not only do you risk infringing their trade mark, but you also run the risk of infringing their copyright. Copying and republishing parts of a website without the permission of the copyright owner will generally constitute copyright infringement.

How do you edit a website without code? ›

How to do web design without coding
  1. Hire a developer. Depending on the extent of your website project, the quickest way to design a website without having to code is to outsource it. ...
  2. Use WordPress and modify a theme. ...
  3. Use a WYSIWYG editor. ...
  4. Try Webflow.

How can I edit HTML source code? ›

Edit HTML in the Console Panel
  1. Log a DOM node to the console.
  2. Right click on it.
  3. Select Edit as HTML or Edit Text.
  4. Notice the DOM is updated on the page and also in the Elements Panel.
9 Aug 2015

How do I stop websites from detecting Developer tools? ›

@zswang gave the way to detect if Chrome DevTools(console) is open.
...
Disable javascript
  1. Open DevTools Command+Option+J (Mac) or Control+Shift+J (Windows, Linux)
  2. Type the hotkey to open the command menu – Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows, Linux)
  3. Type dis and hit return to select the Disable Javascript option.
12 Aug 2016

Do all browsers have inspect element? ›

Every modern web browser has a native tool for inspecting elements. It can be accessed in any browser, but some browsers like Chrome and Safari have slight differences. Let's discuss how to use the inspect tool in three desktop web browsers: Google Chrome, Apple's Safari, and Mozilla Firefox.

Can I hide my code from inspect element? ›

You simply can't. Code inspectors are designed for debugging HTML and JavaScript. They do so by showing the live DOM object of the web page. That means it reveals HTML code of everything you see on the page, even if they're generated by JavaScript.

Can websites track if you copy and paste? ›

Google Knows What's Copied Content

Every year there are around 500-600 changes to Google's search algorithm to improve the functionality. So it's safe to say if you're copying large blocks of text from another website, Google will know.

Can a website take a screenshot? ›

Most Android devices

Simultaneously hold the power button and volume down button. Some devices require the buttons be held for “a few” seconds. The screenshot will be saved to Pictures/Screenshots/ (or DCIM/Screenshots/).

Can a website record my screen? ›

So, in this sense, the answer is no; websites cant detect user activities like screen capture. However, if the website has you download some software and install it, it can most probably recognize external screen capture tools being used on their web pages (if they want to).

What is the third form of inspect? ›

inspected - Simple English Wiktionary.

What is the root word in inspect? ›

Etymology. From Latin inspectum, past participle of inspicere (“to look into”), from in (“in”) + spicere (“to look at”), equivalent to in- +‎ -spect.

What is the other name of inspect? ›

Some common synonyms of inspect are examine, scan, and scrutinize.

How do you edit HTML after saving it? ›

You can ensure your changes save by hitting Ctrl+Enter or simply clicking outside of the text box you are editing. HTML edits can be undone or redone using the normal Ctrl+Z and Ctrl+Y hotkeys. They will also be lost upon page refresh unless you enable persistent editing.

Can you save any web page how? ›

On your computer, open Chrome. Go to a page you want to save. Save page as. Choose where you want to save the page.

How do I permanently edit code in Chrome? ›

Edit Source File Directly in Chrome
  1. Launch Developer Tools. Open Chrome, load the page from your local file system/server. ...
  2. Edit Your Code. Now jump right in your file and edit your code. ...
  3. Save the File. Press Ctrl + S / Cmd + S to save your new changes. ...
  4. Undo Your Mistakes.

How do I save HTML edits in Chrome? ›

Edit Your Code

Editing in Chrome is super easy. You can locate your line of edit by pressingCtrl+Shift+O for Windows / Cmd+Shift+O for Mac. After editing press Ctrl+s on Windows or Cmd+s on Mac to save the file.

What is the hot key for inspect? ›

Just right-click on any website's area and choose Inspect. You can also use your keyboard shortcut - Ctrl+Shift+I.

How do I view hidden source code? ›

How to View Source Code
  1. Firefox: CTRL + U (Meaning press the CTRL key on your keyboard and hold it down. While holding down the CTRL key, press the “u” key.) ...
  2. Edge/Internet Explorer: CTRL + U. Or right click and select “View Source.”
  3. Chrome: CTRL + U. ...
  4. Opera: CTRL + U.

How do I see hidden text on a website? ›

Below an overview is presented of the 10 best ways to make hidden links and text visible using the web developer toolbar.
  1. Disable > Javascript > All Javascript.
  2. Disable > Page Colors.
  3. CSS > Disable Styles > All Styles.
  4. Images > Disable images > All Images.
  5. Images > Display Alt Attributes.
  6. Images > Hide Background Images.
31 Mar 2009

How to edit any website javascript? ›

Here's what you do:
  1. Highlight the following code: javascript:document. body. contentEditable = 'true'; document. designMode='on'; void 0.
  2. While highlighted, drag the code to your bookmarks bar.
  3. Click the bookmark you've created.
  4. Now you can click anywhere on a page and start editing, directly from your browser.
13 Feb 2018

How to change text on any website javascript? ›

Here's how to edit any website in your browser:
  1. Make sure your bookmarks bar is visible (check your browser's settings)
  2. Select the text below: javascript:document.body.contentEditable = true; void 0;
  3. Drag the selected text into your bookmarks bar.
  4. Click that bookmark button and start editing the text on any page.
12 Jun 2018

How do I edit a web page in Chrome? ›

To activate this feature, visit a web page and then open the developer console. To open the console in Google Chrome, click menu > More Tools > Developer Tools or press Ctrl+Shift+i. While we're using Chrome as an example here, this feature works in other modern browsers, too.

How do I edit elements in Chrome? ›

How to Edit Web Pages
  1. Open any web page inside Chrome and select the text on the web page that you wish to edit.
  2. Right-click the selected text and choose Inspect Element in the contextual menu.
  3. The developer tools will open in the lower half of your browser and the corresponding DOM element will be selected.
10 May 2019

What can you do with inspect? ›

Inspect element is a feature of modern web browsers that enables anyone to view and edit a website's source code, including its HTML, CSS, JavaScript, and media files. When the source code is modified with the inspect tool, the changes are shown live inside the browser window.

Is it possible to remove inspect element? ›

You can't disable it completely. Web Console Inspectors are designed for HTML and JavaScript debugging. They do this by displaying the live DOM object on the web page. This means that it exposes the HTML code of everything you see on the web, even if it is created by JavaScript.

How do I edit inspect in Chrome? ›

One of the easiest ways to inspect a specific web element in Chrome is to simply right-click on that particular element and select the Inspect option. Clicking on the Inspect option from the right-click menu will directly open the Developer tools including the editor, Console, Sources, and other tools.

How do you edit HTML in HTML? ›

Editing HTML

You can edit the HTML — tags, attributes, and content — directly in the HTML pane: double-click the text you want to edit, change it, and press Enter to see the changes reflected immediately.

Can you edit a HTML in Google Chrome? ›

Method 1: edit HTML code in Chrome with Chrome Dev Tools

Right-click on the HTML code and press “Edit as HTML”; following this, you will now be able to live edit the html of this element in Chrome, it will be rendered once you're done editing.

How do I inspect hidden elements in Chrome? ›

Open chrome dev tools, click command+shift+p then type focus. b. Click on “Emulate a focused page”. Now, the hidden elements will not disappear on the page and you would be able to inspect the elements on the web application.

Why inspect is important? ›

Inspections are critical to ensure consistent product quality, primarily when relying on third-party suppliers or manufacturers for raw materials. Some businesses often consider inspection as a final quality check before the product gets delivered to the customer.

What does green mean in inspect element? ›

The green color is the element's padding, and the orange color is the element's margin. This corresponds to the CSS Box Model, more about which you can read here: http://www.w3.org/TR/CSS2/box.html.

How do I edit a website and save it? ›

Right click on an empty space on the web page and choose View Page Source or View Source. The resulting popup window (or tab) will show you the underlying HTML structure of the page. You may save this to your hard drive or go back and save the entire web page to your computer.

Top Articles
Latest Posts
Article information

Author: Rubie Ullrich

Last Updated:

Views: 6042

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Rubie Ullrich

Birthday: 1998-02-02

Address: 743 Stoltenberg Center, Genovevaville, NJ 59925-3119

Phone: +2202978377583

Job: Administration Engineer

Hobby: Surfing, Sailing, Listening to music, Web surfing, Kitesurfing, Geocaching, Backpacking

Introduction: My name is Rubie Ullrich, I am a enthusiastic, perfect, tender, vivacious, talented, famous, delightful person who loves writing and wants to share my knowledge and understanding with you.