Chapter 5. Validating and Debugging Your Code

What You’ll Learn in This Chapter:

How to validate your HTML and CSS

How to use Developer Tools to debug HTML and CSS

How to use the JavaScript console to debug JavaScript

It doesn’t matter if you’re a beginner or a seasoned expert—bugs happen. It’s a fact of life for developers of all skill levels, and I would even venture to say that if your code doesn’t contain errors at some point during its creation, then you’re just not trying hard enough. So don’t worry about the bugs, just worry about identifying and fixing them before clients or customers experience the side effects.

In this chapter, you’ll learn about how to validate and debug your HTML and CSS as you develop it, as well as how to ...

Get HTML, CSS and JavaScript All in One, Sams Teach Yourself: Covering HTML5, CSS3, and jQuery, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.