Validating HTML and CSS using Web Developer
Validation is an integral part of web development. HTML and CSS validation ensure that the document is structurally and semantically correct and provide a reliability guarantee that the page will be displayed correctly, both now and in the future.
In this recipe, we will look at how the Web Developer add-on provides easy options for validating both HTML and CSS using the W3C validator at http://validator.w3.org.
Getting ready
It is assumed that the Web Developer add-on is installed and enabled in Firefox.
How to do it...
To validate the HTML of a page currently being viewed in Firefox, click on the Tools menu of the Web Developer toolbar and select Validate HTML as displayed in the following screenshot:
Once clicked, we will be redirected to the W3C validator page to view the results of the check.
Similarly, validating the CSS of a page currently being viewed can be performed by clicking on the Tools menu of the toolbar and selecting Validate CSS.
Tip
Validating...