A web page is a plain text file (HTML). The browser reads that text and draws the page on screen. You are about to learn to write those files.
HTML is the World Wide Web's core markup language. It has been evolving since 1991. Someone who learned HTML 20 years ago can still read HTML today. (Why is this imporant?)
Specification and references:
View → Developer → View SourceOption + Cmd + U
Visual Studio Code (VS Code) is the text editor we use in this class. It is free, runs on Mac and Windows, and is used by professional developers worldwide.
Setup steps:
Code → Check for Updates)
Important habits:
Cmd+S / Ctrl+S). A dot on the tab next to the filename means unsaved changes, a plain X means it's saved_ underscores: my_first_page.htmlindex.html, my_page.html
my_first_page.html not my first page.html
.html → open as a web page.txt → open as plain text.jpg → open as an imageEvery HTML page starts with the same structure. Type this in VS Code and save as my_first_page.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My First Page</title>
</head>
<body>
This is where content goes.
</body>
</html>
Cmd+S)File → Open File → find your .html fileCmd+R after saving.
This is the standard template every HTML file should start with:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Title Here</title>
</head>
<body>
<!-- Your content goes here -->
</body>
</html>
! and press Tab. VS Code will auto-fill the full boilerplate. Try it, then compare it to the template above and ask Copilot about any part you don't recognize..html extension first. VS Code uses the file extension to know it should offer HTML shortcuts, so the ! + Tab shortcut will not work on an unsaved or untitled file.
my_first_page.html. On a blank line, type ! and press Tab. VS Code will auto-fill the full boilerplate (see "The Full Template" slide).
Hello World.
Cmd+S / Ctrl+S) and open it in the browser. Confirm your text shows up on the page.
GitHub Copilot is an AI assistant that lives inside VS Code. It can explain code, write code, fix errors, and answer questions all without leaving your editor.
Step 1: Start today with Copilot Free (no wait):
| Copilot Free | Copilot Student | |
|---|---|---|
| Cost | Free, anyone | Free, school email required |
| Code completions | 2,000 / month | Unlimited |
| Chat / agent use | Capped monthly AI-credit allowance, auto-selected models only | Higher monthly AI-credit allowance, auto-selected models only |
| Wait time | Instant | ~2–3 business days to verify, then up to a week for benefits to activate (longer at semester start) |
Step 2: Apply for Student access this week (homework):