O'Reilly logo

Build Your Own Website The Right Way Using HTML & CSS, 3rd Edition by Ian Lloyd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required