codex-lv2-may-2025

Level Navigation: 1 Current Level: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

Level 2: Basic HTML Structure & Live Server Test

What You’ll Do

Set up the basic HTML structure, link all necessary files, and test with live-server.

Instructions

Example Script Order in index.html

<!-- Example script order in index.html -->
<script src="helpers-full.js"></script>
<script src="secret-variables.js"></script>
<script src="app.js"></script>

Add a console log to your JavaScript app.js

in app.js

console.log("Hello from app.js");

💡 Code Hints

Need help with the HTML structure? Check out these snippets:

✅ Check

  1. In your terminal, run npx live-server in your project folder
  2. Your browser should automatically open to a local URL (like http://127.0.0.1:8080)
  3. You should see your project title as a large heading (H1)
  4. Open Chrome DevTools (F12) and check the Console tab
    • Look for any red error messages about missing files
    • Check that you can see a console log that says “Hello from app.js”
  5. If you see errors about missing files, double-check your file names and paths



Level Navigation: 1 Current Level: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34