HTML

SEO basics for developers: what to build in from the start

Avi, the Avenux Techspire mascot, illustrating: SEO basics for developers: what to build in from the start

A lot of developers think SEO is something the marketing person adds after launch. Keywords, blog posts, maybe some backlinks. Those things matter, but none of them help much if the site itself is built in a way search engines struggle with. The technical foundation is the developer’s job, and it is much easier to build in from the start than to fix later.

Here is what I make sure every site has before it goes live.

A unique title and description on every page

The title tag is what shows as the clickable headline in search results. The meta description is often used as the snippet underneath.

<title>Web Development Course for Beginners | Site Name</title>
<meta name="description" content="Learn HTML, CSS and JavaScript step by step with practical projects.">
  • Every page needs its own title. A site where every page is titled “Home” tells search engines nothing.
  • Put the important words first. Keep titles roughly under 60 characters so they do not get cut off.
  • Keep descriptions roughly under 155 characters and write them for humans. They are your pitch in the search results.
  • Build your templates or CMS so editors can set these per page. Do not hardcode them.

Proper heading structure

Use one h1 per page that says what the page is about, then h2 and h3 for sections. Search engines use headings to understand the structure of the content. Screen readers use them too, so this is good for accessibility as well. Do not use headings just to make text bigger, and do not wrap your logo in an h1 on every page.

Real, crawlable content in the HTML

If your page is a React or Vue app that builds everything in the browser, the initial HTML can be nearly empty. Search engines do run JavaScript, but rendering can be delayed and things can go wrong. For content that needs to rank, render it on the server or at build time. Frameworks like Next.js and Nuxt make this straightforward. WordPress and most PHP sites already do it.

Also make sure links are real links:

<!-- Search engines can follow this -->
<a href="/services/">Services</a>

<!-- They may not follow this -->
<span onclick="goTo('/services/')">Services</span>

Clean, readable URLs

/blog/react-forms-guide/ is better than /index.php?p=4823&cat=7. Use lowercase, hyphens between words and keep them short. Decide on a structure early, because changing URLs later means setting up redirects for all of them.

Also pick one version of your domain (with or without www, always https) and redirect everything else to it.

Canonical tags

The same content can often be reached at several URLs: with tracking parameters, with and without a trailing slash, through a filter. A canonical tag tells search engines which URL is the main one.

<link rel="canonical" href="https://example.com/blog/react-forms-guide/">

Make sure there is only one canonical per page. If both your theme and an SEO plugin print one, you have a conflict.

robots.txt and an XML sitemap

robots.txt sits at the root of the site and tells crawlers what not to crawl. A sitemap lists the pages you do want found. Point to the sitemap from robots.txt:

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://example.com/sitemap.xml

One warning from experience: staging sites often block all crawling with Disallow: / or a noindex setting. Make sure that does not get copied to the live site at launch. It happens more often than anyone likes to admit.

Structured data

Structured data is a block of JSON-LD that describes the page in a format search engines understand: an organisation, an article, a product, a local business, an FAQ. It can make your result eligible for richer displays.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "SEO Basics for Developers",
  "datePublished": "2026-01-15",
  "author": { "@type": "Person", "name": "Author Name" }
}
</script>

Only mark up what is actually visible on the page. Check it with Google’s Rich Results Test before launch.

Speed and mobile

Search engines look at page experience, and Core Web Vitals are part of that. The basics are the same as for any good site: optimised images with width and height set, not too much JavaScript, caching, decent hosting. And the site must work well on a phone. Google mainly looks at the mobile version of your pages, so a broken mobile layout is a real problem, not just a cosmetic one.

Images

  • Use descriptive file names: react-form-example.png, not IMG_4521.png.
  • Write useful alt text. It helps accessibility first, and image search too.
  • Serve compressed, correctly sized images in modern formats.

Social sharing tags

Open Graph tags control how a link looks when shared on WhatsApp, LinkedIn or Facebook. Without them you might get a random image or none at all.

<meta property="og:title" content="SEO Basics for Developers">
<meta property="og:description" content="What to build in from the start.">
<meta property="og:image" content="https://example.com/images/seo-basics.jpg">
<meta property="og:url" content="https://example.com/blog/seo-basics/">

Redirects and 404s

When a URL changes, set up a 301 redirect from the old address to the new one. This keeps visitors and search engines from hitting dead ends. Build a helpful 404 page that returns a real 404 status code, not a 200 with “page not found” text. That second one is called a soft 404, and it confuses crawlers.

Internal links

Link related pages to each other with descriptive anchor text. “Read our guide to React forms” is better than “click here”. It helps people move around the site and helps search engines understand what each page is about.

Launch checklist

  1. Every page has a unique title and description.
  2. One h1 per page, sensible heading order.
  3. No noindex or Disallow: / left over from staging.
  4. One canonical per page.
  5. Sitemap exists and is linked from robots.txt.
  6. Site is HTTPS, with one preferred domain version.
  7. Pages work and load quickly on mobile.
  8. Submit the sitemap in Google Search Console.

None of this guarantees rankings. Good content and real usefulness still do most of the work. But it makes sure that when the content is good, nothing technical is holding it back.