Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Viewing and Editing HTML and CSS with Firebug

Viewing and Editing HTML and CSS with Firebug


The Firebug website announced that development, updates and maintenance of Firebug have stopped, inviting everyone to use Firefox's built-in tools DevTools.

Description

In this chapter we will discuss how to use Firebug to view and edit HTML and CSS.

Viewing and editing HTML with Firebug

Right-click the element you want to inspect and choose Inspect Element.

inspect-html-firebug

Now click on the Firebug windowEdit .

Modify the code

Components of Firebug

.

inspect-html-firebug2

Simply edit the code in the Firebug window to see the result in the browser in real time; you can also copy the code into your HTML file.


Viewing and editing CSS with Firebug

Right-click the element you want to inspect and then clickInspect Element. As shown below, click the style file

inspect-css-firebug

By changing the code to color:red; change the heading color

After the change you can see the effect immediately.

Now you can copy the modified style, replace the original code and save it to make it effective:

inspect-css-firebug2