O'Reilly logo

jQuery for Designers Beginner's Guide by Natalie MacLees

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

Time for action — setting up a simple website

We're going to get started by building out a small and simple website with a few pages. They'll all share the same header, navigation, sidebar, and footer. They'll all have a main content area where the unique content for each page will be displayed.

  1. Get started by setting up an index.html file with all the associated files and folders as we did in Chapter 1, Designer, Meet jQuery. The body of the index.html file will contain our header, navigation, sidebar, and footer:
    <div id="ajax-header"> <h1>Miniature Treats</h1> <ul id="ajax-nav"> <li><a href ="index.html">Home</a></li> <li><a href ="cupcakes.html">Cupcakes</a></li> <li><a href ="petitfours.html">Petits Fours</a></li> <li><a href ="teacakes.html">Tea ...

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