Fix One HTML Link With AI—and Prove It Works

A single extra letter can stop a jump link from reaching its section. Find the mismatch in a fictional book-club page, make the smallest repair, and check the result in your own browser. Use a desktop browser and a plain-text editor. You can work through the source yourself or use an AI assistant.

BeginnerPractice and quiz availableVideo coming Jan 3No sign-up

Watch the lesson

The video is coming soon

The full tutorial publishes January 3, 2027 at 10:00 AM New York time. You don't have to wait — the written practice and quiz are ready below.

Video coming at 10:00 AM New York.

Duration 5:12. Try the written practice and quiz now.

Start practising

Before you begin

Set up your practice files

Use a desktop browser and a plain-text editor (such as Notepad or TextEdit). The practice page is fictional. You do not need to connect to the internet, install a library, or use a real website.

Download broken.html below, then make a copy called working-copy.html. You will edit the copy, never the original. A separate fixed.html reference and the full prompt as a text file are also available.

Step 1

Reproduce the problem

Open your working-copy.html in a browser, start at the top, and click See the reading plan. Does it reach the heading Our reading plan?

The address bar can gain a fragment (the part after #) even when the intended section is not reached — so the URL changing is not proof the link works. Click the separate About this practice link too, so you have an unchanged comparison that already works.

Step 2

Compare the link and its destination

The href uses #reading-plans with an extra s. The section id is reading-plan. The fragment after # should match the id exactly.

Inline source excerpt

<a class="button" href="#reading-plans">See the reading plan</a>
<a href="#about">About this practice</a>
<section id="reading-plan"><h2>Our reading plan</h2></section>
<section id="about"><h2>About this practice</h2></section>

The trap: a confident AI fix is still unverified.

An AI can spot the mismatch from the source, but it cannot test your browser. Read the prompt before submitting once, then check that any answer changes only the href and explains the difference.

Download prompt.txtAll text shown below
I am an adult beginner. This is a deliberately broken local HTML practice page, not a real customer website.
Expected: clicking See the reading plan should reach the section headed Our reading plan.
Observed in the supplied source: the link uses href="#reading-plans", but the destination is id="reading-plan". Browser behavior must be checked separately.

Identify the mismatch and propose the smallest change to the link only. Keep the destination id, headings, styles and the separate About link unchanged. Do not rewrite the page or add libraries or JavaScript.
Explain why the change matches the destination, show only the changed line, then give a short mouse and keyboard retest checklist. Do not say you tested my browser or fixed my actual file.

SOURCE EXCERPT
<a class="button" href="#reading-plans">See the reading plan</a>
<a href="#about">About this practice</a>
<section id="reading-plan"><h2>Our reading plan</h2></section>
<section id="about"><h2>About this practice</h2></section>

Read the full prompt before submitting it. Scroll from top to bottom if necessary, then submit once. Check that any answer changes only the href and explains the difference.

Step 3

Save one edit

Open working-copy.html in a plain-text editor. Change only the href, keep the id, headings, styles and About link, then save the file.

Change only href="#reading-plans" to href="#reading-plan". Keep the id, headings, styles and the separate About link unchanged. Save the file.

Step 4

Retest with a mouse and keyboard

A source edit is not a browser test. Save the file, reload from the top, and confirm the destination actually appears.

Start from top, not already at the destination. Save the same file. Reload.

Start from the top of the page — not already scrolled to the destination — so the scroll actually proves the link works. Save the same file, then reload.

Your retest checklist

0/5 checked

If a check fails

Verify the file path, the saved edit, the exact spelling and letter case, and whether the browser has reloaded. The video uses real ChatGPT and Notepad captures with edited timing and guides viewers through browser checks they perform themselves.

Step 5

Your turn: a fresh link to repair

Predict the one-line correction, then explain how you would check the destination and a separate unchanged link.

Sample link and destination

<a href="#session-times">See session times</a>
<section id="session-time"><h2>Session times</h2></section>

The link uses #session-times (with an extra s) but the destination id is session-time. Predict the one-line correction before revealing the answer.

Check what you understood

Three questions with source-quoted feedback

This quiz uses the reading-plan repair and the session-times exercise above. Reread the source excerpt whenever you need it.

Why must you retest in a browser after editing the source? Your text stays on this page; it is not sent, saved or graded.

Compare your explanation with the source after answering. The quiz gives feedback from a reviewed answer key, not a live AI judgment.

Three questions

1. The link uses #reading-plans and the target id is reading-plan. What is the smallest requested repair?
2. AI says it fixed the link. What remains unverified?
3. For the new session-times / session-time exercise, which check completes the workflow?

No login, scoring service or response collection. Reloading clears the quiz and your explanation.

Wrap-up

What to remember

The fragment after # must match the destination id exactly. Make the smallest repair, then prove it works with a mouse and keyboard — and check an unchanged link to confirm you broke nothing else.

Back to training

About the demonstration

The demonstration uses real ChatGPT and Notepad screen captures with edited timing. It guides viewers through browser checks they perform themselves. The practice page is fictional; interfaces and AI answers can vary.

Free forever

Keep going, step by step

Written practice and quiz are available now. The companion video is coming January 3, 2027; explore the roadmap for what comes next.

Metro Code StudioLearn Tech. Step by Step.

Free practical AI and technology lessons for beginners. Learn by doing and check the output.

Free forever · No paywalls · No sign-up

Subject library

AI & Data

AI · Everyday AI · SQL · APIs

Coding & Building

Kids Coding · Python · Web Development · Git & GitHub

Quality & Security

Software Testing · Accessibility · JMeter · DevSecOps

The method

  • 01Watch
  • 02Follow
  • 03Try
  • 04Understand
  • 05Build

© 2026 Metro Code Studio

Learn Tech. Step by Step.