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.
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 theindex.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 Cakes</a></li> <li><a href="muffins.html">Muffins</a></li> </ul> <...