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

Get jQuery for Designers Beginner's Guide 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.