The HTML panel displays the generated HTML/XML of the currently opened page. It differs from the normal source code view, because it also displays all manipulations on the DOM tree. On the right side it shows the CSS styles defined for the currently selected tag, the computed styles for it, layout information and the DOM variables assigned to it in different tabs.
This menu is reachable via the little arrow in the panel tab ( ) or by right-clicking on on the panel tab (since Firebug 1.9).
|Show Full Text||
||Toggles between full text display and text preview inside the Node View|
|Show White Space||
||Toggles display of white space characters inside the Node View|
||Toggles display of HTML comments inside the Node View|
|Show Entities As Symbols||
||Displays HTML entity characters inside the Node View in their actual character representation|
|Show Entities As Names||
||Displays HTML entity characters inside the Node View in their entity name representation|
|Show Entities As Unicode||
||Displays HTML entity characters inside the Node View in their Unicode representation|
||Toggles highlighting changes to the DOM structure inside the Node View|
||Toggles expanding changes to the DOM structure inside the Node View|
|Scroll Changes Into View||
||Toggles scrolling to changes to the DOM structure inside the Node View|
|Shade Box Model||
||Toggles between the display of a box model representing the contents, margin, padding and the border and a display of just a frame around the inspected element|
|Show Quick Info Box||
||Toggles the display of the Quick Info Box inside the page giving fast information about the currently inspected element|
For more info about tweaks available in Firebug please see the full list of preferences.
Break On Mutate
Enabling the "Edit" mode by hitting the appropriate button lets you edit the HTML directly. Therefore it opens a text editor, which is filled with the node and its contents you currently had selected in the formatted (tree view) mode. After turning the edit mode off again the display switches back to the formatted mode, which now displays the changes made to the source code.
Inside the panel menu there is a list of nodes, starting with the currently selected node and going up the element structure up to the root node of the document. The list looks like what some Web sites call a "breadcrumb" list. Hovering one of the nodes inside the list shows a highlighting box around the element inside the page and clicking on it selects the node inside the tree structure of the HTML panel. The context menu of each item in the list offers thereby the same options as the node's context menu inside the Node View.
The body of the panel represents the document nodes of the page converted back into a source-like view. Note that this view is created from the live document: this is not a source view. The view can be based on any kind of markup, e.g. HTML, XML, or SVG graphics.
Single nodes can be expanded/collapsed by clicking the twisty besides them, using the
- or the
Clicking on an attribute or the text content within an element allows to edit the related value inline. While inline editing there will be auto-completion for attribute names and values as well as CSS styles within the
style attribute of an element. This works for HTML elements as well as SVG elements. New attributes can be added by clicking the closing bracket (
>) of a tag.
Alt and clicking on a node starts the Edit Mode. Holding down
⌘ and clicking on a URL (e.g. of a
<link> tag) opens the URL in a new tab.
Faintly displayed elements mean they are not visible inside the page. That is e.g. when the CSS style
display: none is applied to the element or the element doesn't have any dimensions.
Right-clicking on a node or a node attribute opens a context menu with different options.
When the option Shade Box Model is set and you mouseover the nodes a corresponding area of the page is highlighted. The different colors thereby reflect different parts of the element.
|Copy HTML||Node||-||Copies the current node and all it's contents to the clipboard|
|Copy innerHTML||Node||-||Copies the contents of the current node to the clipboard|
|Copy XPath||Node||-||Copies the XPath to the current node to the clipboard|
|Copy Minimal XPath||Node with ID||-||Copies the minimal version of an XPath to the current node based on the node's ID to the clipboard|
|Copy CSS Path||Node||-||Copies the CSS path (selector) of the current node to the clipboard|
|Log Events||Node||-||Logs events (e.g. mousemove, click, focus, etc.) triggered at the current node to the Console Panel|
|Scroll Into View||Node||-||Scrolls the page, so that the current node is visible|
|Add Attribute...||Node in Node View||-||Starts inline editing to add a new attribute to the current node|
|Edit Attribute "<attribute name>"...||Node attribute in Node View||-||Starts inline editing for the current node attribute|
|Delete Attribute "<attribute name>"||Node attribute in Node View||-||Deletes the current node attribute|
|Edit HTML...||Node in Node View||-||Switches to the Edit Mode and allows editing the contents of the current node|
|Delete Element||Node in Node View||
||Deletes the current node|
|Expand/Contract All||Node in Node View||
|| Expands or collapses all child nodes except |
|Break On Attribute Change||Node in Node View||-||Creates an HTML breakpoint for the current node, that triggers as soon as an attribute of that node is changed|
|Break On Child Addition or Removal||Node in Node View||-||Creates an HTML breakpoint for the current node, that triggers as soon as a child node is added to or removed from it|
|Break On Element Removal||Node in Node View||-||Creates an HTML breakpoint for the current node, that triggers as soon as it is removed|
|Inspect in DOM Tab||Node in Node View||-||Lets you inspect the current node inside the DOM Panel|
Besides node manipulation the HTML panel also offers a lot of information around the selected elements. This information appears in the side panels on the right, selected by another set of tabs.
The Style Side Panel shows all CSS styles, that are currently assigned to the selected node.
The Computed Side Panel shows all style values the user agent calculated for display while interpreting the given CSS information.
The Layout Side Panel gives a quick overview over the box model values for the selected node and offers a way to manipulate them.
The Events Side Panel lists all event handlers assigned to the selected element as well as event listeners for
Within the HTML panel the Search Field allows you to search for elements using XPaths or CSS selectors. E.g. typing the XPath
//*[@style] will find all elements having a style attribute or the CSS selector
.example will find all elements having the
example class assigned.