💻PROJECT #1.1: Recipe Website

Overview & Setup

It’s time to practice all of the HTML knowledge you have acquired. In this project, you are going to build a basic recipe website.

The website will consist of a main index page which will have links to a few recipes. The website won’t look very pretty by the time you’ve finished, unless you’re into brutalist web design, that is.

It’s important to keep in mind that this project is just to build your HTML chops; we will revisit this project in the future to style it up with CSS.

  1. Go to the CS1 Project 1.1 assignment on Blackbaud and follow the link to the HTML/CSS/JS template.
  2. 📁 Click Use This Template then select Create New Repository
  3. Name your repository: CS1-Project-1-1-YourUsername
  4. Open the repository in a Codespace whenever you spend time working on the program, in class or at home.

    ⚠️ Always remember to commit changes after every coding session!

  5. When your project is complete, submit the link to your repository page in the CS1 Project 1.1 assignment on Blackbaud.

Instructions & Requirements

Iteration 1: Create Initial Structure

  1. Within the project, navigate to the index.html file.
  2. Ensure that it is already filled out with the usual boilerplate HTML, with a head and body section inside the opening & closing html tags.
  3. Add an h1 heading in the body section that describes the main title of the website (like “My Favorite Recipes” or “Sweet Treats for Fall”).

Iteration 2: Start Recipe Section

  1. Create a new div element to group together the information for your first recipe on the page.

  2. Specify a unique identifier within the div opening tag, like this: <div id="recipe-name">

    You can use the name of your favorite dish or, if you need some inspiration, you can find a recipe to use at Allrecipes.

  3. For now, just include an h2 heading inside the div, with the recipe’s name as its content.

  4. Back at the top of the body section, under the first h1, add a link to the recipe div section you just created.

    Example: <a href="#recipe-name">Recipe Name</a>.

    • The href attribute is directing the anchor to the div on the page that has id="recipe-name". Replace recipe-name with your own identifier.
    • The text of the link should again be replaced with the actual recipe name.

Iteration 3: Add Recipe Section Content

Your new recipe div section must include the following content:

  1. An image of the finished dish under the h2 heading that you added earlier. You can find images of the dish on Google or Allrecipes.
  2. Under the image, it should have an appropriately sized (smaller than the recipe title heading) “Description” heading followed by a paragraph or two describing the recipe.
  3. Under the description, add an “Ingredients” heading followed by an unordered list of the ingredients needed for the recipe.
  4. Finally, under the ingredients list, add a “Steps” heading followed by an ordered list of the steps needed for making the dish.

Iteration 4: Add More Recipes

  1. Add two more recipes with identical structures to the recipe div section you’ve already created.
  2. Don’t forget to link to the new recipes at the top of the page. This will help with navigation around your page, so users can click to jump to the recipe they want to see.

Also, consider putting all the links in an unordered list so they aren’t all on one line.

Example:

 <ul>
    <li><a href="#lasagna">Lasagna Recipe</a></li>
    <li><a href="#pizza">Pizza Recipe</a></li>
    <li><a href="#chicken-milanese">Chicken Milanese Recipe</a></li>
  </ul>

Your links won’t be flashy, but for now, just focus on building them out.

Extensions

  • Add even more recipes!
  • Incorporate emojis to embellish your text content, if you like the way they look.
  • Create a header image or logo for your recipe blog on Canva and add it to the top of your page before the h1 heading.

Acknowledgement

Content on this page is adapted from The Odin Project.