💻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.
- Go to the
CS1 Project 1.1
assignment on Blackbaud and follow the link to the HTML/CSS/JS template. - 📁 Click
Use This Template
then selectCreate New Repository
- Name your repository:
CS1-Project-1-1-YourUsername
- 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! - 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
- Within the project, navigate to the
index.html
file. - Ensure that it is already filled out with the usual boilerplate HTML, with a
head
andbody
section inside the opening & closinghtml
tags. - 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
-
Create a new
div
element to group together the information for your first recipe on the page. - 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.
-
For now, just include an
h2
heading inside thediv
, with the recipe’s name as its content. - Back at the top of the
body
section, under the firsth1
, add a link to the recipediv
section you just created.Example:
<a href="#recipe-name">Recipe Name</a>
.- The
href
attribute is directing the anchor to thediv
on the page that hasid="recipe-name"
. Replacerecipe-name
with your own identifier. - The text of the link should again be replaced with the actual recipe name.
- The
Iteration 3: Add Recipe Section Content
Your new recipe div
section must include the following content:
- 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. - 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.
- Under the description, add an “Ingredients” heading followed by an unordered list of the ingredients needed for the recipe.
- 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
- Add two more recipes with identical structures to the recipe
div
section you’ve already created. - 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.