Project: Build Your First Web Page

Write real HTML, CSS and JavaScript in your browser — a page with a heading, a list, and a button that responds to a click. It renders live as you type, and you can export it to open in VS Code.

beginner ⏱ 30 min

Your first web page

This is the real thing — the same HTML, CSS and JavaScript every website is built from, running live in your browser. Edit the three files on the left and the preview updates as you type; console.log and errors show in the console under it. Work through the tasks, then hit Check my work.

My First Web Page
PREVIEW

Your tasks

  • ○Add an <h1> containing 'Welcome to Learn.GT'
  • ○Add a <ul> with exactly 3 <li> items
  • ○Add a button with id 'greet'
  • ○Add a paragraph with id 'output'
  • ○Give the <h1> a non-default colour in CSS
  • ○Clicking #greet shows 'Hello, Learn.GT!' in #output

When you’ve got it

You just built a real, interactive web page from scratch — structure (HTML), style (CSS), and behaviour (JavaScript), the three pillars of every front end. Hit Export to download it as an .html file: double-click to open it in any browser, or drop it into VS Code to keep building. That’s the bridge from learning here to building for real.

Teaching a class? Embed this free lab on your own page.

Report a problem

About: /labs/frontend-first-webpage

🤖

Need clarification? Ask GT

Hi, I'm GT — your AI tutor for Project: Build Your First Web Page. What would you like to know?