Chapter 4

Testing and Validating Your Code

IN THIS CHAPTER

Bullet Testing your code in (what seems like) a billion browsers

Bullet Understanding the rationale behind validation

Bullet Making sure your HTML code is up to snuff

Bullet Getting a thumb’s-up for your CSS code

Bullet Applying a stamp of approval to your JavaScript code

Validate your HTML. Know what it means to have valid HTML markup … . More information is always better than less information. Why fly blind?

— JEFF ATTWOOD

Have you ever heard of a read-only user? This play on read-only memory refers to someone whose use of the web goes only as far as reading things other people have created. I don’t know if that moniker currently applies to you. If it does, it won’t for much longer because by reading this book, you’re arming yourself with the tools necessary to be one of the web’s creators. Soon, all those other read-only users will be reading your words!

There’s something almost magical about building your very own web page with your bare hands using nothing ...

Get HTML, CSS, & JavaScript All-in-One For Dummies 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.