Chapter 11 Adding Interactivity with jQuery

I hope that when you compare the progress made with each chapter that you’re gaining a clear picture of how much the project site has moved on. Up until now, it’s all been about having the right HTML for the job so that the document conveys the proper meaning, and making the best use of CSS to style the pages and elements on them.

In this chapter, however, we’ll see how you can add a further layer to the site: the “behavior” layer. Just as you should be able to separate the presentation (CSS) from a document, so you should also be able to do the same with the behavior, and for this you need to use JavaScript. And use it the right way.

But what is behavior? It might be what happens as you hover ...

Get Build Your Own Website The Right Way Using HTML & CSS, 3rd 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.