Joshua Rarama

Learn everyday

By

Using Google Chrome’s Developer Tools – Part 1

Share Button

As a website developer, tools to analyze HTML, CSS and JavaScript are indispensible. One such tool that we are going to see are the Google Chrome’s developer tools.

img1  

To open this window, you should first open your Google Chrome browser and go to a URL such as http://jquery.com. There are 3 ways to open the Developer tools:

  1. Click the menu button on the upper right corner of the browser, select Tools, and then click on Developer Tools.
  2. You can also do this by pressing Ctrl+Shift+I
     

    img2

  3. Or right click inside your browser, and click Inspect Element.
     

    img3

  You can dock or undock this window by clicking the button on the lower left corner:

img4  

The Elements Tab

  The elements tab is useful for viewing and editing the HTML Dom and the CSS styles of the page. Editing element attributes:

  1. To edit an attribute of an element, you can right click the element you want to modify, then click, Inspect element.
  2. Then you can double click the element’s code to edit it.
     

    img5

  3. You can also add another attribute, edit html, copy the html, and more.
     

    img6

Editing the CSS Styles on the element:

  1. On the right side of the Elements Tab is the where we can edit the element’s styles.
     

    img7

  2. The change will quickly reflect on the element
     

    img8

  3. You can view all the styles affected on the current element selected. You can check or uncheck each styles and preview the difference. You can also modify it as you go.
     

    img9

Share Button

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">