You’ve written a tutorial on handling failed fetch() requests. The examples work, the screenshots are up to date, and you’re about to hit Publish.
Then you look at the page title: Blog | My Site.
That's the kind of issue that a fast HTML inspection identifies. Although the content itself may be helpful, visitors aren't getting much data from the site template. Before you publish a technical post, check the title, headings, description, links, and photos.
1. Check what your template puts in <title>
A blog template should give each post a title that describes that specific page. A site name is fine as a suffix, but it shouldn’t be the only thing in the title.
<!-- Before: the same title on every post --> <title>Blog | My Site</title> <!-- After: a title that describes this tutorial --> <title>How to Handle Fetch Errors in JavaScript | My Site</title> Then check the visible headline:
<h1>How to Handle Fetch Errors in JavaScript</h1> The <title> lives in the document’s <head>; the <h1> is the headline readers see on the page. They don’t have to match word for word, but they should describe the same article. Google may use the title element or visible headings when generating a search result title, so treat your <title> as helpful input, not a guarantee of what will appear.
2. Make the headings useful to someone debugging a problem
Imagine a reader lands on your tutorial because their code never reaches catch when an API returns a 404. They’re not looking for a section called “Advanced Concepts.” They’re looking for an explanation of the behavior they’re seeing.
<h2>Why fetch() doesn't reject on HTTP errors</h2> <h2>How to check response.ok</h2> <h2>How to handle network failures</h2> Try reading just your headlines. Are you familiar with the topics covered in each of the following sections? If any of your headings can be moved around, change the heading so it is specific to that section.
3. Write a description that tells readers what they’ll get
A meta description is a short summary in the document’s <head>. Google may use it for the search snippet, but it can also pull text from the page itself.
<meta name="description" content="Learn how to check response.ok, handle HTTP errors such as 404 and 500, and catch network failures when using fetch() in JavaScript." > Don't listen to the opening "Welcome to our ultimate guide." Use this space to describe the topics covered in the tutorial. Additionally, make sure that every post can override any description that is coded into a shared design.
4. Give links and screenshots a reason to be there
A good link tells readers where they’re going before they click. If you mention retries but don’t explain them in this tutorial, a link to a separate guide fits naturally.
<p> If your API occasionally returns a 503, see <a href="/blog/retry-failed-fetch-requests/"> how to retry failed requests with backoff </a>. </p> Use the same test for informative screenshots: what would a reader miss if the image didn’t load or they couldn’t see it? Describe the relevant detail in the alt text.
<img src="/images/fetch-network-tab.png" alt="Browser Network tab showing a 404 response for the products API request" > The point of that screenshot isn’t that it shows a browser. It’s that the reader can tell which request failed and what status it returned.
5. Check the rendered page, not just the Markdown
Your Markdown can look right while the rendered page still has the wrong title or a generic description. Open the published post or a deployed preview, then run this in the browser console:
console.table({ title: document.title, description: document.querySelector('meta[name="description"]')?.content ?? 'Missing', mainHeading: document.querySelector('h1')?.textContent?.trim() ?? 'Missing', }); Open a second post and run it again. If both pages return the same title or description, check the shared layout before editing individual articles. Then click the links in the post to make sure they lead where the link text says they do.
This is a check of what the page renders, not a prediction of how it will rank.
The pre-publish checklist
- [ ] The page title describes this tutorial, not just the site.
- [ ] The visible headline and page title make the same promise.
- [ ] The section headings help readers jump to the answer they need.
- [ ] The meta description reflects what the post actually covers.
- [ ] Links name their destination, and informative screenshots have useful alt text.
- [ ] The published page or deployed preview renders the values you intended.
For the search-specific basics, see Google’s SEO Starter Guide.
If the HTML checks out but the article still takes too long to answer the reader’s question, the next fix is in the draft, not the template. Use this companion guide to optimize your blog content for SEO for that editing pass.