Search engines can only index what they can fetch and understand. These on-page basics make that easier, and most of them help your readers just as much.
Title tags and meta descriptions
Give every page a unique title that says what it covers. Meta descriptions don’t directly affect indexing, but a clear one can earn more clicks. Google may rewrite either, and it’s more likely to when they don’t match the page.
Headings
Use headings to show the structure of the page. One clear main heading and logical subheadings help people scan and help crawlers understand the sections. Write them for clarity rather than to fit in keywords.
Internal links
Links are how crawlers find pages and judge which ones matter. Link to important pages from related content, use descriptive anchor text, and make sure nothing you want indexed is left without links.
Images
Use descriptive filenames and alt text that says what the image shows. Serve images in standard <img> elements so crawlers can find them, and use an image sitemap on image-heavy sites.
Mobile pages
Google indexes the mobile version of your site. If content or links exist only on desktop, Google may never use them.
Page speed
A fast server lets crawlers fetch more pages without overloading your site, and a fast page keeps readers around. Compress images, cache aggressively and choose reliable hosting.
JavaScript
Keep main content and links in the HTML your server sends, and use JavaScript to enhance them. Google can render JavaScript, but as a later step, and many other crawlers don’t run it.
If you’ve seen advice to use the “AJAX crawling scheme”, skip it. Google deprecated it in 2015 and has since stopped using it. Today’s alternatives are server-side rendering, static generation and hydration.
PDFs
- Use real text, because scanned images of text are much harder to index.
- Set a descriptive document title.
- Link to the PDF from a relevant page, and link from the PDF back to your site.
- Tag the document properly and describe its images, which also makes it accessible.
Keep checking
On-page work isn’t a one-time job. Templates change, plugins add markup and old pages drift. Review the Page indexing report in Search Console regularly and fix patterns rather than single pages.