- Lab
- Core Tech

Guided: Building with HTML and CSS - Part 1
In this lab you will build an interactive webpage for a pie shop using HTML, CSS, and JavaScript. The page will display a selection of pies in a modern grid layout and allow users to add pies to a shopping cart. By the end of this lab, you'll have hands-on experience building an interactive webpage from scratch. You'll learn practical skills in HTML, CSS, and JavaScript that form the foundation of web development.

Path Info
Table of Contents
-
Challenge
Introduction
Welcome to Code Labs! Today we're building an interactive webpage for a pie shop using HTML, CSS, and JavaScript. The page will display a selection of pies in a modern grid layout and allow users to add pies to a shopping cart.
Steps:
- We'll start by building the basic HTML structure, adding links, images, and buttons.
- Next, we'll style our page using CSS, learning about CSS Grid, and responsive design techniques.
- Lastly, we'll use JavaScript to make our buttons interactive, adding pies to the shopping cart.
By the end of this lab, you'll have hands-on experience building an interactive webpage from scratch. You'll learn practical skills in HTML, CSS, and JavaScript that form the foundation of web development.
Where we are heading!
If you're ready, click on to the first task.
-
Challenge
Create the Pie Grid HTML Structure
In this step we are going to build out the pie grid HTML structure. All of your code will be done inside
/pies.html
. Once you have completed the tasks above, refresh the Web Browser tab and use the button in the top-right corner to open it into a new tab. Remember to navigate to/pies.html
to see the changes.Now we have to style it! If you're ready, click to move on.
-
Challenge
Style the Pie Grid
In this step we are going to style the pie grid HTML structure. All of your code will be done inside
styles.css
and you will see your changes at/pies.html
. Once you have completed the tasks above, refresh the Web Browser tab and use the button in the top-right corner to open it into a new tab. Remember to navigate to/pies.html
to see the changes.Next we have to create the Add to Cart functionality. If you're ready, click to move on!
-
Challenge
Create the Add to Cart Functionality
In this step we are going create the Add To Cart functionality that simualates adding an item to a cart. Your code will be in
script.js
and you will add the HTML button inpies.html
. Nice! At this point yourpies.html
should be fully functional. You can see your pies in a grid and add them to the cart.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.