Joystick Junkies: The HTML Language (Lab 2)
Related Lessons
This is Lab 2 in Developing Web Pages (BUS1880) and Web Fundamentals (CSCI1450). Before you start Lab 2, be sure you have studied, watched the videos, and completed the exercises in the Slideshow for Module 2.
The objective of this lab assignment is to learn some beginning HTML, including the framework and structural elements, while practicing the developer workflow.
No prerequisites are required for this lab — all the code you need is provided here. All of the code you need to know is described in more detail in the Related Lessons above.
Jump to:
- A. Set Up the Project
- B. Set Up Your Desktop
- C. Add Framework and Structural Tags
- D. Add Markup to the <main> Section
- E. Add Header, Navigation and Footer
- F. Build the Gaming Systems Page
- Checklist for Grading
- How to Submit Your Lab on D2L
About Joystick Junkies
In the classes I teach at MinnState, Joystick Junkies is a series of labs used to teach the most basic HTML and CSS coding. The gallery below shows you the progress over 5 weeks of class. As you can see, by the time you finish all 5 Joystick Junkies labs you can make a professional website!





We will be making two web pages in Lab 2: index.html is the Home page and gaming-systems.html is the Gaming Systems page. First we will make the Home page, and then we will copy the home page to start on the Gaming Systems page. At the end of the lab your web pages will look like this:


A. Set Up the Project
Step 1. Download the starter files: Joystick Junkies Starter File
Step 2. Open up Mac Finder or Windows File Explorer. Navigate to the downloads.
Step 3. Unzip or Extract the files from the zip folder. (On Windows, you need to Extract All from the zip. On a Mac, you simply click the zip file.)
Step 4. When you unzip the starter files, you will see some HTML files, a CSS file, and a folder for the images. These are the files and folders you need for the Joystick Junkies website. Move these files and the images folder into the joystick-junkies folder you already created. The index.html file and all the files should be directly at the root of the joystick-junkies folder.
New here? This lab assumes you already have a “joystick-junkies” folder set up inside a “websites” folder. If you’re following along on your own and haven’t set that up yet, take a quick look at Organizing Your Folders and Files first.
Check to make sure that your folders and files match the screenshot below.

Avoid this Common Error. A common error I see at this step is dragging the entire starter-file folder into the joystick-junkies folder. Instead, move the contents of the starter-file folder and place its contents directly into the joystick-junkies folder. On a website, it is important to have the index.html and other HTML files at the root of the website folder.
B. Set Up Your Desktop
To develop websites, you need to write code in a text editor and view the code in a browser. By setting up your screen so that you can see both the text editor and the browser at the same time, you will code more efficiently. (See the lesson on The Web Developer Workflow for more detail.)
Here is a graphic that shows you the pattern you will follow in your workflow as a web developer. You will make changes in the text editor, save, then check your work in the browser, and then go back to the text editor to make more changes.

I recommend that you set up your desktop like this, with your text editor on the left and the browser on the right.

Before we start coding, open the joystick-junkies/index.html file in the browser.
- If you are using Sublime Text, simply right or alt mouse click and “Open in a Browser.”
- If you are using another text editor, you can open the file in Chrome with File → Open File.
Why is the text all run together? One thing that is interesting is that the browser view looks very different than the view in your text editor. That is because without any markup, the text is run together. In the starter files for Joystick Junkies, there is no HTML markup yet — no headings, no paragraph breaks, nothing to tell the browser how the content should be organized. Browsers ignore line breaks and extra spacing in your code, so without tags to mark where one piece of content ends and the next begins, everything gets displayed as one long, run-together block of text. That’s exactly the problem HTML solves: adding markup gives the browser instructions for how to structure and display your content, instead of just dumping it onto the page as a single stream of words.
C. Add Framework and Structural Tags
Add Framework Tags
You may want to start by cutting and pasting your template code into index.html. It will involve some cutting and pasting to get everything in the right place, but avoids some typing. (For a refresher, see the lesson on The HTML Framework.)
Step 1. Add <!DOCTYPE html> at the top of the page.
Step 2. Add <html lang="en"> underneath <!DOCTYPE html> and at the bottom of the page add the closing </html>.
Step 3. Add the <head></head> tags.
Step 4. Add <body></body> tags. The body tags go around the text from the starter file.
Step 5. Add the <meta charset="utf-8"> into the head.
Step 6. Add <title>Joystick Junkies</title> inside the <head> and </head>.
Check your work against the screenshot below.

Add the Structural Elements
These are the semantic elements that give your page its structure. (For a refresher, see the lesson on HTML Semantic Elements.)
Step 1. Add <header> tags.
Step 2. Add <nav> tags.
Step 3. Add <main> around the content.
Step 4. Add <footer> tags.
Check your code against the screenshot below. The nav and footer tags are empty right now. We’ll get to those in a bit.

D. Add Markup to the <main> Section
Step 1. Add the <p> tags around the paragraphs.
Step 2. Add <h2> tags around the subtitles “Popular Games” and “Gaming Systems.”
Quick reminder on links. An anchor tag has two parts:
<a href="destination.html">Text that is displayed</a>. The text between the opening and closing<a>tags is what shows up on the page for the user to click. Thehrefattribute is what tells the browser which page to actually go to — the user never sees it. For more detail, see the lesson on HTML Links: The Anchor Tag <a>.
Step 3. Add the anchor tag for the text: “See our list of popular games.” The link goes to game-list.html.
Step 4. Add the anchor <a> tag for the text: “See our list of gaming systems.” The link goes to gaming-systems.html.
Check the Browser
Open the index.html file in a browser. From Sublime Text, you can use the secondary (right) click to open it in a browser. The result should look like the screenshot below. Click on your links to make sure that they work.

E. Add Header, Navigation and Footer
Add the <header>
Since we don’t have a logo for this website yet, we will just add text in the header. (We’ll add the logo in Module 4.)
Step 1. Find the <header></header> tags you added earlier.
Step 2. Place the name of the website, “Joystick Junkies” in <h1> tags inside of the header. (Not the <head>.)

Add Hyperlinks to the <nav>
A website needs a navigation, right? We are going to add the navigation links. Add the three links to your navigation:
Step 1. Home (index.html)
Step 2. Gaming Systems (gaming-systems.html)
Step 3. Top Games (game-list.html)

Check Your Navigation and Add Space
Check your navigation in the browser. The links are a little too close together, right?
Let’s fix that by adding the HTML entity for some non-breaking spaces: (See our HTML Entities tool for a full list.)
The code looks like this:


Create the Website Footer
Step 1. Add an <hr> at the top of the footer. This helps the user to see where the main section ends and the footer starts.
Step 2. Add the footer text in <p> tags. Here is the text:
Joystick Junkies is an exercise by Susan Metoxen, an instructor at Saint Paul College in Saint Paul, Minnesota. This website was hand-coded by me, YOUR NAME, and I chose the colors and other CSS design properties for this website.
Step 3. Add the email link with “mailto”. Place the mailto link in <p> tags. Use your name for the link name as well as the displayed name.
Step 4. Add the copyright. Place the copyright in <small> tags. Use your name for the copyright. Remember that you code the copyright symbol with the © HTML entity (see our HTML Entities tool). Place a space after the ©

Step 5. Add Your Name. Find the places in the footer text where it says “YOUR NAME” and change it to your name.
Check in a Browser
You have finished the index.html page. Check carefully to make sure it looks exactly like the screenshot below.

Double Check Your Code
Check your code carefully, because now we will copy it to make another page on the website. If you have any errors when you copy your code the errors will get copied to the other page. The most common error students make is in the <nav> section, so double check your navigation.

F. Build the Gaming Systems Page
Now we need to create the second page of the website, the Gaming Systems page. Remember that on a website the only code that varies is in the <main> section. So when we need to add a new page, we will reuse everything except for the <main> section. The code in the <head>, <header> <nav> and <footer> is the same on all pages.
When the page is done, it will look like this, with Pros and Cons in a bulleted list for each gaming system.

Step 1. Select and copy the entirety of index.html.
Step 2. Paste it into the top of the gaming-systems.html file. Place it above the other text in the file.
Step 3. Delete the content of the <main> section from index.html, but keep the <main> tags.
Step 4. Place the text that was in the gaming-systems.html starter file into the <main> section.
Check your work so far in the browser and compare it to the screenshot below. As you can see, the <header>, <nav> and <footer> are already done. On a website, only the <main> section varies among its pages. (We’ll work on coding the <main> section next. )

Text Tags for gaming-systems.html
Step 1. Place <h1> tags around “The Pros and Cons.”
Step 2. Place <h2> tags around “Which gaming system is right for you?”
Step 3. Place <p> tags on the next paragraph.
Step 4. Scroll to the bottom of the <main> section and look for “The Bottom Line.” Place <h2> tags around the text “The Bottom Line.” The Bottom Line is at the bottom of the <main> section.
Step 5. Place <p> tags on the paragraph after The Bottom Line.
The code looks like this in this step.

The browser looks like this:

<h3> Tags on Each Gaming System
Now find the four gaming systems and place <h3> tags on each on them. The gaming systems are:
- PC Gaming
- PlayStation (PS5)
- Xbox (Series X|S)
- Nintendo Switch
Check in a browser. Now we can see the four gaming systems clearly in the browser.

Pros and Cons
Now we are going to make the Pros and Cons for each game system. There is some repetitive typing here, so copy and paste code to make it go more quickly. (This is a great spot to use what you learned in the Keyboard Shortcuts lesson.)
Step 1. Place <p> and <b> tags around all of the “Pros” and “Cons.”
There are a lot of tags! Make the job go faster by copying and pasting the tags. This is the code for the first gaming system, “PC Gaming.” Each gaming system will have its own Pros and Cons in an unordered list.
Step 2. Format the list under each Pros and Cons set into an unordered list, using the <ul> and <li> tags.
This is what the code looks like for the first gaming system:

Check your layout. Each gaming system should have the layout as the PC Gaming is shown below.

If there is some extra indenting, check to make sure that you closed all of the </ul> tags.
When finished, your gaming-systems.html page should look exactly like this in the browser:

Check Your Links
Make sure your navigation links work. You should be able to click on the Gaming System link from the Home page, and on the Home page from the Gaming Page page. (We’ll work on the Top Games page in the next module.)
Checklist for Grading
Here is a checklist of what I will be looking for when grading the lab:
From the Module 2 Slideshow
When you worked through Module 2, you created a website template. The template work will be graded as part of this lab.
Joystick Junkies Lab
How to Submit Your Lab on D2L
Online students: Follow the instructions below to submit your lab assignment.
In person or Zoom students: I’ll grade your assignment in class. If I don’t grade it in class, then submit it via D2L using these instructions.
- To turn in your lab in D2L, you need to create a compressed zip file of your work.
- Zip up the entire websites folder, which includes the joystick-junkies folder. You made the overall websites folder in the Module 2 slideshow.
- Each week, I grade not only your work on Joystick Junkies but also your work on the Module Slideshow.
- Compress (zip) your websites folder and upload it to D2L.
- Mac Instructions: Right click on the folder and choose Compress.
- Windows: Click here for instructions
Congratulations on finishing Lab 2!
Now you know some HTML! Move on to Lab 3 to learn some CSS.
Need Help?
Using AI for coding is not allowed in this course, so if you get stuck simply Make an Appointment for office hours. In addition, if you run into a bug as you are working, you may email your websites folder to me at susan.metoxen@saintpaul.edu.
