codex-lv2-may-2025

Level Navigation: 1 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 Current Level: 27 28 29 30 31 32


🧪 Level 27: Add Validation Area

What You’ll Do

Improve your validation system by creating a dedicated area for validation messages.

Instructions

Add a dedicated validation area to your HTML:

💡 Code Hints

Need to display text in your validation area? You’ll use the setText() function to show validation messages. Check out the Helper Functions section in SNIPPETS.md for setText() examples and other useful functions.

✅ Check

  1. Open your webpage in a browser
  2. Look for a new validation area near your input field
  3. This area should be empty by default (no text visible)
  4. The area should be styled appropriately (subtle border, background, or text color)
  5. Open Chrome DevTools (F12) and check the Console tab for any errors
  6. If you don’t see the validation area, check that you added the HTML element with the correct ID
  7. Next step: In Level 28, you’ll connect this area to your validation logic from Levels 25-26

Next: Level 28 - Show Validation on Empty



Level Navigation: 1 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 Current Level: 27 28 29 30 31 32