Where to Put Internal Links in Coding Tutorials

If the first exercise in your C# tutorial starts with an open console project, put the project setup link just above it. Beginners can get their project ready before they try to run the code, and anyone who already has one can skip straight to the exercise. The same link at the bottom of the page comes too late.

Identify the decision the reader is about to make

An internal link points to another page on your site or to a section of the current page. In a programming tutorial, it’s most useful when it answers a question the reader has right then: What do I need before I run this command? Why did I get this error? What does this line do? What can I build next? Two tutorials can cover the same language and still be useful at very different points in a lesson.

Start with what the tutorial promises. If readers came to fetch and display data in C#, the page should show them how to make the request and display the result. You can point to a separate guide for project setup or a closer look at cancellation, but readers shouldn’t have to piece together the main exercise across three posts. Keep the core instructions on the page and link out when readers need a detour or are ready for another task.

When planning a lesson, use a content brief for a programming tutorial to spell out what readers will build and what they need to know before they start. That makes it easier to tell a prerequisite from a topic that’s merely related.

Place each link where the need arises

Before an exercise: fill a setup gap

Put setup links just before the first step that depends on them. If a JavaScript exercise uses the browser’s Network panel, you can explain how to open it in a sentence. A separate walkthrough makes sense if readers also need to learn how to find a request and inspect its response. Link to it before asking them to interpret the response, not in a resource list after the exercise. Let readers know they can skip the walkthrough if they’ve already found the request.

Beside the code: explain just enough to keep going

If readers need to understand a term to follow the next line, explain it right there. In a C# example, you might say that when an operation hasn’t finished yet, await pauses the method without blocking the thread while it waits. Readers who want to know how Task and Task<T> represent asynchronous work can follow a link beside that explanation. Everyone else has enough context to keep reading the code.

After a check: offer a recovery path

Put troubleshooting links next to symptoms readers can recognize. Say a JavaScript fetch example reports an unexpected < character when it tries to parse JSON. Explain that the server may have returned HTML instead, then ask readers to check the status and response body in the Network panel. That’s the place to link to a walkthrough on diagnosing non-JSON responses, if you have one. A general guide to promises won’t tell readers what the server sent back.

After a working result: name an extension

Before giving readers a new goal, show them how to tell they’ve finished the first one. In a small game tutorial, ask them to move the player sprite to the edge of the window and check that it stops. Below that check, you can link to a lesson on detecting contact between the player and an obstacle. If the sprite still goes off-screen, the reader knows there’s something to fix before moving on.

Notes beside a laptop map out a coding lesson

Write link text that names the destination

“Set up a C# console project” tells readers what they’ll learn to do. “How C# tasks represent asynchronous work” tells them what they’ll learn about. “More about C#” leaves them guessing. Use the sentence around the link to explain when it’s useful, and let the linked words identify what’s on the other page. The W3C’s guidance on link purpose in context explains how link text and its surroundings work together.

Try skimming just the linked phrases. If two sound interchangeable but lead to different lessons, make the difference clear. In a career guide, “prepare a short portfolio project demo” and “describe your contribution in an interview” set different expectations. Calling both “interview tips” hides the distinction. Check the opening of each destination, too: if it assumes prior experience, it may not deliver on a link that promises a beginner walkthrough.

Link the shortest phrase that still makes sense. In a paragraph about keeping an interface responsive, “cancel an asynchronous request” is easier to scan than a whole linked sentence about cancellation, error handling, and progress indicators. Keep links out of code samples so readers can read and copy the code as-is. Put the link in the explanation next to the relevant step.

Choose the destination, not just the topic

A page can cover the right subject and still be a poor fit for the task. A guide to JavaScript promises might explain chaining well without showing how to run independent operations together. A C# console example can teach cancellation tokens without showing where to connect a Cancel button in a XAML interface. If the concept carries over but the code doesn’t fit the project, say so.

Choose a destination that fits the size of the detour. If the answer is already under a heading farther down the page, a jump link can save readers some scrolling. Use a separate post when the explanation needs its own setup, examples, or checks. If almost everyone needs the answer and it fits in one sentence, put it right where the question comes up.

When there are two sensible next steps, explain who needs each one instead of listing both under “Related reading.” Someone who can already run one asynchronous operation might be ready to coordinate several independent tasks. Someone whose app still waits indefinitely could start with timeouts or cancellation. Describe each option in terms readers can recognize in their own code.

Review the path as a learner would

Before changing a published tutorial, make a backup. Save a copy of the post or verify that you can restore the current version from revision history. If you’re editing shared navigation or updating links across several pages, back up all affected content before making the batch change. Then open a preview and go through the lesson outside the editor.

  1. Start where a newcomer lands. Open the article directly, without visiting the homepage or course index first. Check that the prerequisites make sense even if you haven’t read the previous lesson.
  2. Walk through the actions in order. At each command or code block, ask what the reader needs to know before using it. Move setup links above the steps that depend on them, and don’t interrupt a working sequence with optional background.
  3. Follow the links. A page can load and still be the wrong destination. Check that the title, first example, and prerequisites match what the link promises. For a jump link, check that it lands on the intended heading.
  4. Check where readers pick up again. If the setup guide leaves readers with a working console project, the original tutorial should pick up from there. When readers need to return, give them the name of the step to resume rather than just telling them to continue.
  5. Test on a narrow screen and with a keyboard. Check that the link appears before the instruction it supports and is recognizable as a link. Use Tab to reach it and make sure you can see when it has focus.

For a second pair of eyes, give a colleague a task rather than asking if the links look good: “Start with no project and run the first example.” If they miss the setup link and get stuck, try moving it closer to the exercise or giving it a clearer label. If they follow it and land on a page that assumes they already know how to use the command line, find a better destination or add the missing instruction to the original lesson.

Fix misleading links when tutorials change

Recheck links that point to a tutorial when its scope changes, even if the URL stays the same. A post that once showed how to start a C# app in the terminal might now use an IDE. If the IDE workflow works for the exercise, update the link text. If the exercise still depends on terminal commands, point readers to a guide that teaches those commands or include the setup in the exercise itself.

Click counts don’t tell the whole story. A setup link can be useful even if most readers arrive prepared and skip it. A link that gets clicked often might point to a gap in the lesson rather than a popular next topic. If learners keep leaving the page to find out which folder to run a command from, name the folder beside the command. Keep the link for readers who need a fuller explanation of the project layout.

Try this on a JavaScript tutorial that displays a single API response. Before linking to an exercise on fetching independent responses in parallel, ask readers to confirm that a value from the first response appears on the page. Put the next exercise below that checkpoint. If the page is blank, readers should still be at the step that helps them check the first request.