# Inspecting HTML [edit]

This page describes how to inspect the HTML elements of a web page using the Firebug extension for Firefox.

## Introduction

Use the Inspection feature of Firebug to examine the live HTML source of any object on a web page. For pages with dynamic content, you can view changes to the HTML source in real time.

## Instructions

To inspect the HTML elements of a web page in Firebug:

1. In the lower right corner of Firefox, click the Firebug button to start Firebug.
2. Click the tab to view the HTML for the page.
3. Click the button to turn on code inspection on hover.
4. Move your cursor around the HTML page. As you hover over an object, Firebug highlights the HTML code for that object in the HTML tab. (See screen capture below.)

5. You can also inspect the CSS styles, CSS box layout, and DOM elements of a page, by clicking the Style, Layout, or DOM tabs on the right pane of Firebug.
   - The Style tab displays the CSS styles that are currently applied to the selected HTML element. These styles update dynamically as the element is updated.
   - The Layout tab helps you understand the CSS box model for the selected element. It displays the size (in pixels), padding, border, margin, and offset of the element.
   - The DOM tab displays DOM information for the selected node. Click on a Node in the HTML tab to display its DOM information.

## Related Topics

- About Firebug
- Installing the Firebug extension
- Inspecting CSS
- Monitoring XMLHttpRequests
- Editing a web page
- Writing to the Firebug console
- Setting breakpoints in Firebug
- Profiling code performance

Retrieved from "http://aptana.com/docs/index.php/Inspecting_HTML"

Category: AptanaHelp