Www-Hostinger-In-T
Www-Hostinger-In-T
Www-Hostinger-In-T
Learning how to inspect elements in a browser is beneficial, especially if you work in IT. Inspect Element
lets visitors access and temporarily edit a website’s front-end source code, including its HTML, CSS,
JavaScript, and image files.
Aside from temporarily changing the appearance of a website, the Inspect Element tool allows users to
test scripts, debug errors, and locate a web page’s metadata.
All major browsers include the Inspect Element feature. This article will demonstrate how to use and
access Inspect Element in Google Chrome, Safari, and Mozilla Firefox.
We’ll also go over how to use it, such as how to change a page element, inspect CSS classes, and enable
Responsive Design Mode.
CSS live-editing ‒ allows you to make edits in the CSS panel and see the changes in real time.
Layout testing ‒ lets you test different website layouts.
Debug diagnostics ‒ helps website maintenance as it can check whether a site contains broken
code.
Temporary editing ‒ allows you to tweak page elements without making permanent changes to the
code.
Web developers – you can test the code you’ve written and interact with it on a web page. You can
also use Inspect Element to find errors or bugs on a site.
Content writers – the Inspect Element feature lets you omit sensitive information from a web page
before taking a screenshot. Manipulating a page using Inspect Element is quicker than photo editing
software.
Digital marketers – lets you check a competitor’s search engine optimization (SEO) efforts,
website metadata, targeted keywords, and Google index status.
Customer support agents – helps when assisting web developers in pinpointing and fixing a
website error.
Designers – help modify a site’s design and see the changes before implementing them. The tool
also lets you preview the appearance of a web page on a desktop computer or mobile device. This
saves time and makes communicating with clients more efficient.
Elements/Document Object Model (DOM) panel – contains the page’s DOM tree and provides
access to the Hyper Text Markup Language (HTML) source code. It is located at the top taskbar of
the Chrome Developer Tools.
CSS panel – allows you to change, add, and remove CSS properties to modify the style rules of a
web page. It is located in the middle section of Developer Tools, under Styles.
Console – displays logged messages and runs the JavaScript code. It appears at the button
taskbar of Developer Tools.
1. Open a website in Google Chrome. We will be using hostinger.com for this tutorial.
2. Click on the three vertical dots on Chrome’s top menu bar, choose More tools, then select
Developer tools.
Alternatively, use the keyboard shortcuts – Ctrl + Shift + I for Windows or Linux and Cmd + Option + I for
macOS users.
Or, right-click on the web page and choose Inspect to access the Developer tools panel.
3. Once the Elements tab appears on your browser window, you can edit the page’s source code.
Resize the inspector box by dragging its corners for better readability.
5. By default, the Elements panel will appear on the right side of the browser window. If you want to
change its location or move it to a separate window, click on the three vertical dots at the upper-
right corner of the panel and choose your preferred Dock side setting.
6. To see how the web page appears on mobile devices, click the Toggle device toolbar at the top-
left corner of the panel. Above the preview, you can change the variables to test how the page
performs with a different screen resolution or bandwidth throttling level.
Pro Tip
To inspect a specific element, right-click on it and choose the Inspect
option. The inspect element tools will open and automatically highlight
the source code of the selected element.
You can use Inspect Element to change, delete, or hide site content and check CSS classes. We
recommend clearing the browser cache regularly to ensure you’re viewing the original appearance of
the web page.
The following sections will provide in-depth information on how to perform common Inspect Element tasks.
Change an Element
To change a page element, you need to alter the page’s CSS or HTML source code. This way, you can
edit text and its style elements, such as font weight, size, and color.
The DOM panel enables simple text modification. Here’s how to do it:
1. Open Google Chrome and go to a website. In this example, we’re using hostinger.com.
2. Right-click anywhere on the web page and select Inspect to open the Developer tools.
3. After opening the Elements box, use the Inspect tool ‒ the cursor icon at the top left of the panel
‒ to highlight the source code element you want to change.
4. Right-click on the code highlighted within the DOM tree and select Edit as HTML. Alternatively,
double-click the text you want to alter.
5. The editor box will expand, allowing you to modify the text. Text elements are usually encased in
quotation marks.
1. Open Google Chrome and access a website. In this example, we’re using hostinger.com.
2. Right-click anywhere on the website and choose Inspect.
3. Use the Inspect tool to highlight an element.
4. Click on the element.style property on the upper part of the CSS panel and add the desired style
declarations inside the curly brackets. In the following example, we added a background color to a
text block:
5. If you want to put another style declaration, select the element.style property again. The web
inspector will add another empty line to fill. Here, we append a second property to display the text
in italics:
6. Hovering over CSS properties in the panel will reveal a checkbox next to each line. Uncheck it to
omit any styles from being shown. Alternatively, you can click on a property or a value to replace it.
3. Enable the Inspect feature and click on the element you want to hide.
4. Right-click on the code highlighted on the DOM tree and select Hide Element. A new visibility
property will appear on the CSS panel. Uncheck it to undo the change.
5. If you want to remove an HTML element instead, right-click on the highlighted code and select the
Delete element. Refreshing the page will restore the removed code.
Pro Tip
You can undo all the changes made in the Inspect Element tool by
pressing Ctrl+Z on Windows and Linux or Command+Z on macOS.
3. Activate the Inspect tool and hover your cursor over the element you want to check. Its basic
information like color, font, and margin will appear in a box, and the DOM panel will highlight its
source code.
4. You can also find a specific CSS style by pressing Ctrl+Shift +F on Windows and Linux or
Command+Option+F on macOS.
5. A search tab will appear on the lower part of the panel. Enter your query, and the inspector will
generate the results.
1. Select Safari on the menu bar and choose Preferences from the menu.
2. Choose Advanced and tick the box next to Show Develop menu in menu bar to enable Inspect
Element.
3. Once you activate the feature, you’ll see a Develop option added to the menu.
2. Right-click anywhere on the page and choose Inspect Element, or you can use the keyboard
shortcut Command+Option+I.
Alternatively, choose Develop -> Show Web Inspector from the menu bar.
The Inspect Element tool in Safari appears at the bottom of the browser window by default. To change the
location, click the icon to dock the panel on the right side or open it in a separate window.
The Web Inspector panel consists of two columns – the first shows the HTML source code, and the
second displays the CSS. Use the cursor to navigate the interface and explore the code and lines
corresponding to each region.
Alternatively, inspect the page directly by clicking the Inspect tool button on the panel’s upper left corner.
As you move the cursor, the tool shows the corresponding source code.
Like the Google Chrome Inspect Element tool, Safari allows users to edit, remove, and add web page
elements.
1. Open Safari.
1. Open Safari.
1. Open Safari.
1. Open Safari.
You can also use the keyboard shortcut Ctrl+Shift+I to access Inspect Element.
The Firefox inspector appears at the bottom of the window by default. To change its location, click the
three-dots menu on the panel’s upper right corner and choose another display option.
This tool allows you to select a specific element to find its code. Click the Inspect tool on the top-left
corner of the panel to enter selection mode.
The Inspector panel in Firefox works similarly to Chrome and Safari. The HTML source code is color-
coded – blue is content, yellow is margin, and purple is padding.
3. Right-click on any specific part of the web page and select Inspect.
5. Click the section, and the tool will provide a new line to add a new code.
Mozilla Firefox also offers Responsive Design Mode to preview several preset screen resolutions. Here’s
how to do it:
Alternatively, click the three-stripes menu -> More tools -> Responsive Design Mode.
4. Activating the mode lets you check the connection speed and device pixel ratio.
Conclusion
The Inspect Element feature lets users modify, edit, or add code to an existing web page. It is helpful for
testing site design, debugging, excluding sensitive information from screenshots, researching metadata,
and finding hidden keywords.
In this article, we have explained the steps to access Inspect Element and provided its common uses in
three web browsers – Google Chrome, Safari, and Mozilla Firefox.
We hope this article has helped you learn how to use Inspect Element and some of its implementations. If
you have any questions or suggestions, let us know in the comments section below.
Linas L.
Linas started as a customer success agent and is now a full-stack web developer and
Technical Team Lead at Hostinger. He is passionate about presenting people with top-
notch technical solutions, but as much as he enjoys coding, he secretly dreams of
becoming a rock star.
T H E C O - AU T H O R
Noviantika G.
Noviantika is a web development enthusiast with customer obsession at heart. Linux
commands and web hosting are like music to her ears. When she's not writing, Noviantika
likes to snuggle with her cats and brew some coffee.
Trustpilot
Vakarė
May 12 2022
Hi! Making changes through inspect mode will not edit the
actual page, just the view on the browser, so after a reload it
will be the same as before. However, you can copy the source
code (right click -> "View Source Code") and then paste it into
your website to publish as HTML code :)
joshua onukak
May 25 2022 REPLY
Vakarė
May 31 2022
Hi! Yes, if you copy and paste the new code inside of your
website code editor (e.g. WordPress code editor), you will
change the whole page and will see the changes even after
reload 👍 Just make sure to preview before making permanent
changes to your page 😊
Leave a reply
Comment*
Name*
Email*
By using this form you agree that your personal data would be processed in
accordance with our Privacy Policy.
Submit
And More
HOSTING
Web Hosting
VPS Hosting
CyberPanel Hosting
Cloud Hosting
Business Email
CMS Hosting
Ecommerce Hosting
Website Builder
AI Website Builder
AI Logo Generator
DOMAIN
Domain Transfer
Cheap Domains
Domain Extensions
WHOIS Lookup
HELP
Tutorials
Knowledge Base
INFORMATION
Migrate to Hostinger
System Status
Affiliate Program
Payment Methods
Rewards
Hostinger Reviews
Pricing
Sitemap
COMPANY
About Hostinger
Our Technology
Roadmap
Customer Care
Blog
LEGAL
Privacy Policy
Terms of Service