• Our Community
  • Business Directory
  • Write for Us
  • Top Freelance Books
  • About & Contact Us
  • Sitemap
  • Listings
    • My Listings
    • Signup

Ulancer.com

    • Latest Stories

      What is new?

    • How to change dpi in Photoshop

      June 8, 2013

    • How to cut out an image in Photoshop

      June 7, 2013

  • Freelance
    • Articles
    • Quick Tips
  • CMS Tools ∇
    • Drupal Themes
    • WordPress Themes
    • Joomla Themes
    • Joomla Plugins
    • WordPress Plugins
  • Web Designs ∇
    • CSS
    • Designs
  • Graphic Design ∇
    • Icons & Logos
    • Photography
    • Typography
  • Resources ∇
    • Advertising
    • Firefox
    • Scripts
    • Tools
  • Tutorials ∇
    • Photoshop
    • Web Coding
    • Mac OS X
    • WordPress
    • XAMPP
  • APPS

Firebug Tutorial – Getting Started

67
  • by Clifford Ngong
  • In Firefox · Resources ∇ · Tools
  • — 2 Jan, 2012

Firebug is a Firefox browser add-on that specializes in putting several web development tools in your hands while you surf the web.  Firebug allows you to edit, debug and monitor JavaScript, CSS and HTML in real-time on any web page.  It also allows you to explore the DOM (Document Object Model) to create CSS selectors in conjunction with JavaScript to create dynamic Web 2.0 webpages.

This beginning tutorial covers the following topics regarding Firebug:

  • Installing Firebug
  • Opening and Closing Firebug
  • The Firebug Window
  • Edit your webpage in real-time
  • The ubiquitous Box Model
  • Evaluating webpage download speed

For the purposes of this tutorial it is assumed that you are currently using the Mozilla Firefox internet browser and have located the Firebug download area of Firefox Add-Ons at https://addons.mozilla.org/en-us/firefox/addon/firebug/.

Note: To enlarge the image, simply click on it and get a better view of the image.

Installing Firebug

Once you are at the Firebug area of Firefox Add-Ons simply click the “Add to Firefox” button to the right of the desired Firebug version.

Opening and Closing Firebug

There are two way to open and close Firebug.

1

Keyboard Shortcuts

a) Toggling F12 opens and closes Firebug.
b) Ctrl + F12 opens Firebug and undocks it into a new Firefox window.
c) Ctrl + F12 again docks the Firebug window into the main Firefox browser.
d) Shift + F12 deactivates (closes) the Firebug console.

2

Mouse Actions

a) Click on the Firebug icon in the upper right-hand corner of Firefox to open.

b) Click the right-most icon in the upper right-hand corner of the Firebug window to close.

Handy Firebug Console Settings

Modify the text font size (increase/decrease):

Open the Firebug console, left-click on the Firebug icon in the upper left-hand corner of the Firebug console.  Select “Text Size” for a pop-out menu.

Have Firebug always open in a new (undocked) console window:

Open the firebug console, left-click on the Firebug icon in the upper left-hand corner.  Select “Options”, then select “Always Open in New Window” in the pop-out menu.

The Firebug Window

1

Console Tab: Displays JavaScript error message log, JavaScript commands can be entered and executed in the pane to the right.

2

HTML Tab: Shows HTML as DOM nodes in an indented hierarchy fashion. The individual nodes can be expanded/contracted to show/hide child nodes.

3

CSS Tab: You can display all loaded CSS style sheets with the CSS inspector tab and modify styles on the fly. To the right of “Edit” (at the top of the Firebug window) is a drop down that lists the loaded style sheets by name.

4

Script Tab: See the list of included JavaScript files and select one to view from this pane by clicking on the drop down list on the top of Firebug window. Set breakpoints and conditions by click on the script line numbers to the left of the script pane.

5

DOM Tab: Displays the DOM (page) objects and properties of the window. Because variables are properties of the window object, Firebug displays all JavaScript variables and their values to the right of the DOM objects.

6

Net Tab: Allows you to monitor and troubleshoot how long each page resource took to download, also shows the HTTP request headers and server response sent for each resource. For AJAX debugging the XHR tab is especially useful.

Edit your webpage in real-time

By clicking the HTML tab and clicking a text node you can double-click on the text and modify it in real-time.  Feedback is instantaneous because changes are immediately applied in the browser.

The DOM inspector, available by clicking on the DOM tab contains edit-in-place functionality of your document structure, not just text nodes.

In the CSS panel you can edit both the attributes names and values seeing the effects immediately.  You can also add new attributes name/value pairs.

The ubiquitous Box Model:

Evaluating Height, Width, Padding, Border and Margin

The HTML tab allows you to inspect elements.  The left pane shows the HTML and the right pane displays the CSS.  Just above the CSS is a tab called “Layout”.  This shows the CSS box model as it applies to the selected element.  The browser window above applies color and shading to the actual page.

Evaluating webpage download speed

The Net tab displays the request times for all http requests for a given webpage.  When working with JavaScript heavy pages this can demonstrate that the scripts are at the bottom of the page. This does not lessen total download time but to the user the page appears to download much faster.

Continuing Learning with Firebug

This tutorial only scratches the surface of Firebug’s functionality – all of which is designed to speed website development exponentially.

Note: To get a better view of the images, simply click on them.

Thank!

If you enjoyed this article, Get email updates (It’s Free)
Share

Tags: firebug tipsfirebug toolfirebug tutorialFirefoxResources ∇tools

Clifford Ngong

— Clifford Ngong

My name is Clifford Ngong, and I'm from Cincinnati, Ohio. Writing has always been a passion of mine since I was eleven years old. I love to write about  broad topics ranging from freelance reviews, insightful tutorials to time-saving tips.

You might also like...

  • 13 Most Have Firefox Add-ons-Extensions 13 Must Have Firefox Add-ons/ Extensions 23 Dec, 2012
  • Cool Fonts For Dynamic Headlines 5 Cool Fonts For Dynamic Headlines 9 Aug, 2012
  • elgg Top Best Social Networking Scripts 20 Sep, 2010
  • Image-1-Freelancer1 A Suite of Free Aviary Tools for Freelancers 17 Mar, 2011
← Older Comments
  • Pingback: Clifford Ngong

  • Pingback: Nexse SWAT Team

  • Pingback: Clifford Ngong

  • Pingback: Clifford Ngong

  • Pingback: Clifford Ngong

  • http://www.yahoo.com/ Kaylee

    Shoot, who would have tohught that it was that easy?

  • http://www.bing.com/ Randhil

    Action requires knlowgede, and now I can act!

← Older Comments
  • Previous story Top 10 Typography Rules You Should Know
  • Next story JSON Tutorial & Tips – Getting Started

    • Recent Posts
    • Most Popular
    • Comments
    • change-resolution-dpiHow to change dpi in PhotoshopJune 8, 2013
    • success-Photoshop-cut-outHow to cut out an image in PhotoshopJune 7, 2013
    • new-doc-Photoshop-featherHow to feather in PhotoshopJune 6, 2013
    • How to blur background in PhotoshopHow to blur background in PhotoshopJune 5, 2013
    • 40+ Web Design and Development Icon Sets40+ Web Design and Development Icon SetsJanuary 25, 2012
    • slider_wp_03Best collection of WordPress Slider PluginsJuly 5, 2010
    • Image-1-Ora_Time_and_ExpenseFreelance Tools: keep Track of TimeFebruary 5, 2011
    • Firebug Tutorial-1Firebug Tutorial – Getting StartedJanuary 2, 2012
    • lynn J on:How to access PhpMyAdmin in Xamppp
    • abu on:How to enable ssl in Xampp
    • abu on:How to install Xampp
    • David Jr. on:How to enable ssl in Xampp
  • Our Category

    • Freelance (77)
    • CMS Tools ∇ (51)
    • Web Designs ∇ (7)
    • Graphic Design ∇ (34)
    • Resources ∇ (54)
    • Tutorials ∇ (71)
    • APPS (34)
    • Advertising (12)
    • Articles (20)
    • CSS (17)
    • Designs (10)
    • Drupal Themes (5)
    • Firefox (6)
    • Icons & Logos (9)
    • Joomla Plugins (4)
    • Joomla Themes (7)
    • Mac OS X (2)
    • Photography (11)
    • Photoshop (28)
    • Quick Tips (41)
    • Scripts (9)
    • Tools (29)
    • Typography (11)
    • Web Coding (19)
    • WordPress (13)
    • WordPress Plugins (19)
    • WordPress Themes (26)
    • XAMPP (3)
  • Submit a Resource

    Add a useful resource or service to our Resource Directory for the continuous prosperity of all freelancers around the globe!

    Submit Resource
  • Staff Picks

    • 40+ Web Design and Development Icon Sets40+ Web Design and Development Icon SetsJanuary 25, 2012
    • slider_wp_03Best collection of WordPress Slider PluginsJuly 5, 2010
    • Image-1-Ora_Time_and_ExpenseFreelance Tools: keep Track of TimeFebruary 5, 2011
  • Recent Posts

    • How to change dpi in Photoshop
    • How to cut out an image in Photoshop
    • How to feather in Photoshop
    • How to blur background in Photoshop
    • How to flip image in Photoshop
    • How to enable ssl in Xampp
  • Search Our Blog

  • Ulancer is an insightful freelance blog and resource site. We provide intuitive articles that cover Photoshop tutorials, time-saving management tips covering a broad range of topics. We also have an active freelance community forum, there you can meet other freelancers that share your common interest, socialize and chat about freelance trending news as the occurred.

© Copyright 2013 Ulancer.