the complete SEO guide 2026 everything you need to ran #1 on google
All posts
Technology

The Complete SEO Guide 2026 — Everything You Need to Rank #1 on Google (Beginner to Advanced)

The ultimate 2026 SEO guide—learn keywords, AI search, technical SEO, and link building to rank higher on Google and drive more traffic.

#SEO#Search Engine Optimization#Technical SEO#On-Page SEO#Off-Page SEO#Keyword Research#Link Building#AI SEO#Content Marketing#Organic Traffic#SERP Rankings#Digital Marketing#Google Ranking#Website Optimization#SEO Strategy 2026
Milan Thapa

Milan Thapa

February 20, 2026·45 min read·

The Complete SEO Guide 2026 — Everything You Need to Rank #1 on Google (Beginner to Advanced)

Last updated: February 2026 | Reading time: 30 minutes | Category: Tutorial

Introduction — Why SEO Is the Most Valuable Skill You Can Learn in 2026

Every single day, people type 8.5 billion searches into Google.

Every single one of those searches is a person looking for an answer, a product, a service, or a piece of content. And the websites that appear on the first page of those results get approximately 95% of all the clicks. The second page gets the remaining 5%.

If your website, blog, business, or portfolio is not on page one — for the terms your audience is searching — you are essentially invisible.

That is what SEO fixes.

SEO stands for Search Engine Optimization. It is the practice of making your website more visible in search engine results pages — commonly called SERPs — so that more people find your content organically, without you paying for ads.

Good SEO brings you free, consistent, compounding traffic. A blog post written today with good SEO can bring visitors for five, ten, or fifteen years without you spending a single rupee on promotion. That is the power of organic search.

This is the most complete, honest, and practical SEO guide available in 2026. I have structured it from absolute basics to advanced techniques so that whether you are a complete beginner or an experienced developer wanting to improve your site's rankings, you will find exactly what you need here.

Let us begin.

Table of Contents

  1. What Is SEO and How Do Search Engines Work
  2. The Three Pillars of SEO
  3. Keyword Research — The Foundation of Everything
  4. On-Page SEO — Optimizing Every Page Perfectly
  5. Technical SEO — Making Your Site Fast and Crawlable
  6. Content SEO — Writing Content That Ranks and Converts
  7. Off-Page SEO and Link Building
  8. Local SEO — Dominating Your Local Market
  9. SEO for Developers and Next.js Sites
  10. Measuring SEO Success — Tools and Metrics
  11. Common SEO Mistakes to Avoid
  12. SEO in 2026 — AI, Voice Search, and What's Coming Next
  13. Complete SEO Checklist

Chapter 1 — What Is SEO and How Do Search Engines Work

Before you can optimize for search engines, you need to understand how they actually work. Most people skip this step and it costs them later.

How Google Crawls and Indexes the Web

Google uses automated programs called crawlers or spiders — most famously Googlebot — to continuously browse the internet. These crawlers follow links from page to page, discovering new content and revisiting old content to check for updates.

When Googlebot finds a page, it reads the content, analyzes the code, evaluates hundreds of signals, and stores a version of the page in what is called the Google Index — essentially a massive database of every page Google has discovered and evaluated.

When you type a search query into Google, you are not actually searching the live internet. You are searching Google's index. Google's algorithm then ranks the indexed pages it believes are most relevant and most authoritative for your specific query and presents them in order.

The entire process from your search to the results appearing takes less than half a second.

How Google Ranks Pages — The Algorithm

Google's ranking algorithm considers over 200 factors when deciding which pages appear in which order for any given search query. Google does not publish the exact details of its algorithm — it is one of the most closely guarded secrets in the technology industry.

However, through years of research, testing, and official statements from Google itself, the SEO community has identified the factors that matter most:

Relevance — Does the content of the page actually answer the search query? Google uses Natural Language Processing to understand not just keywords but meaning, intent, and context.

Authority — How trustworthy and authoritative is the website? This is primarily measured through links from other websites — the more high-quality sites that link to yours, the more authority Google assigns to you.

User Experience — Does the page load fast? Is it mobile-friendly? Do users stay on it or immediately leave? Google watches behavioral signals carefully.

Content Quality — Is the content original, comprehensive, accurate, and genuinely useful? Or is it thin, copied, or written just to rank rather than to help?

Freshness — For some queries, particularly news and current events, how recently the content was published or updated matters significantly.

The Three Types of Search Intent

Understanding search intent is the single most important concept in SEO. Every search query has an intent behind it — a reason why the person is searching. Google's entire job is to match content to intent.

Informational intent — The person wants to learn something. "How does SEO work", "what is compound interest", "symptoms of vitamin D deficiency". These searches are best served by educational articles, guides, and explanations.

Navigational intent — The person wants to go somewhere specific. "Facebook login", "Gmail", "Netflix". These searches are best served by the official pages of those services.

Transactional intent — The person wants to buy something or take action. "Buy iPhone 15", "best SEO tool subscription", "hire a web developer". These searches are best served by product pages, service pages, and landing pages.

Commercial investigation intent — The person is researching before making a decision. "Best personal finance books 2026", "Next.js vs Gatsby comparison", "top web developers in Nepal". These searches are best served by comparison articles, reviews, and roundups.

Matching your content to the right intent is not optional — it is essential. If someone searches "best running shoes" with commercial investigation intent and your page tries to sell them shoes immediately, you have mismatched content and intent. Google will notice because users will bounce immediately.

Chapter 2 — The Three Pillars of SEO

All of SEO can be organized into three fundamental pillars. Understanding these gives you a mental model for everything else.

Pillar 1 — Technical SEO

Technical SEO is about making sure search engines can actually find, crawl, understand, and index your website without any technical barriers. It is the foundation. If your technical SEO is broken, nothing else matters.

Technical SEO covers site speed, mobile-friendliness, site architecture, XML sitemaps, robots.txt, structured data, HTTPS, canonical tags, and Core Web Vitals.

Pillar 2 — On-Page SEO

On-page SEO is about optimizing the actual content and HTML of individual pages so that both users and search engines understand what the page is about and find it genuinely useful.

On-page SEO covers keyword optimization, title tags, meta descriptions, headings, content quality, internal linking, image optimization, and URL structure.

Pillar 3 — Off-Page SEO

Off-page SEO is about building your website's authority and reputation in the eyes of search engines — primarily through earning links from other websites but also through brand mentions, social signals, and other external factors.

Off-page SEO covers link building, digital PR, guest posting, social media, and brand building.

Chapter 3 — Keyword Research — The Foundation of Everything

Keyword research is the process of discovering what words and phrases your target audience types into search engines when looking for content related to your topic. It is the most important step in any SEO strategy because everything else — your content, your pages, your structure — is built on top of your keyword research.

Why Keyword Research Matters

Writing content without keyword research is like opening a shop without knowing what your customers want to buy. You might get lucky. But you will probably work very hard and reach very few people.

Good keyword research tells you exactly what people are searching for, how many people are searching for it, how difficult it will be to rank for it, and what kind of content will satisfy the searcher's intent.

Understanding Keyword Metrics

Search Volume — How many times per month that keyword is searched globally or in a specific country. High volume keywords get more traffic but are usually more competitive.

Keyword Difficulty — A score from 0 to 100 representing how hard it is to rank in the top 10 results for that keyword. Lower is easier. A new website should target keywords with difficulty below 30.

Cost Per Click (CPC) — How much advertisers pay per click for that keyword in Google Ads. High CPC keywords indicate commercial value — people are making money from that traffic.

Search Intent — As discussed above, what the searcher actually wants. This affects what type of content you need to create.

Short-Tail vs Long-Tail Keywords

Short-tail keywords are broad, one to two word searches. "SEO", "finance books", "web development". They have enormous search volume and enormous competition. Almost impossible for new sites to rank for.

Long-tail keywords are specific, three to five word phrases. "best SEO guide for beginners 2026", "top personal finance books for young adults", "how to learn web development from Nepal". They have lower search volume but much lower competition and much higher conversion rates because the searcher is being very specific about what they want.

For new websites and blogs, long-tail keywords are the right strategy. Rank for ten long-tail keywords and you build authority. That authority then helps you rank for shorter, more competitive keywords over time.

The Best Free Keyword Research Tools

Google Search Console — Free. Shows you exactly what keywords your site is already ranking for and what queries are bringing traffic. Essential.

Google Keyword Planner — Free with a Google Ads account. Shows search volume and competition for any keyword.

Google Autocomplete — Free. Type a keyword into Google and see what suggestions appear. These are real searches people are making.

People Also Ask — Free. The "People also ask" box in Google search results shows related questions. Every one of these is a keyword opportunity.

AnswerThePublic — Free tier available. Visualizes all the questions people ask around a topic. Excellent for content ideation.

Ubersuggest — Free tier available. Keyword suggestions, difficulty scores, and content ideas.

The Best Paid Keyword Research Tools

Ahrefs — The gold standard for SEO professionals. Best keyword research, backlink analysis, and competitor research. Worth the investment if you are serious about SEO.

SEMrush — Comprehensive SEO platform with excellent keyword research, site audit, and competitive analysis tools.

Moz Pro — Reliable keyword research and site auditing with excellent educational resources.

How to Do Keyword Research Step by Step

Step 1 — Brainstorm seed keywords. What is your website about? What topics do you cover? Write down 10 to 20 broad topics related to your content. For a developer portfolio blog, that might be: web development, Next.js, React, Tailwind CSS, Sanity CMS, portfolio tips, developer career.

Step 2 — Expand each seed keyword. Use Google Autocomplete, People Also Ask, and a keyword tool to find all the related long-tail keywords around each seed. "Next.js" might expand to "how to build a portfolio with Next.js", "Next.js vs Remix 2026", "Next.js tutorial for beginners".

Step 3 — Evaluate each keyword. Check search volume (is anyone searching?), keyword difficulty (can you realistically rank?), and intent (what would satisfy this searcher?).

Step 4 — Cluster keywords by topic. Group related keywords together. Each cluster will eventually become one piece of content that targets multiple related keywords simultaneously.

Step 5 — Prioritize by opportunity. Start with keywords that have decent search volume (100 to 1000 per month), low difficulty (under 30), and clear intent that matches content you can create well.

Chapter 4 — On-Page SEO — Optimizing Every Page Perfectly

On-page SEO is everything you control on the page itself. It is where most beginners spend their time — and where many of them make the most mistakes.

Title Tags — The Most Important On-Page Element

The title tag is the blue clickable headline that appears in Google search results. It is the single most important on-page SEO element.

Best practices for title tags:

  • Include your primary keyword as close to the beginning as possible
  • Keep it between 50 and 60 characters (longer gets cut off in search results)
  • Make it compelling enough that people want to click it
  • Include your brand name at the end separated by a dash or pipe
  • Every page on your site should have a unique title tag

Good example:

Top 10 Money Books That Changed My Life — Milan Thapa

Bad example:

Blog Post About Finance Books and Money and Reading and Self Improvement

Meta Descriptions

The meta description is the grey text that appears beneath the title in search results. It does not directly affect rankings but it massively affects click-through rate — how many people who see your result actually click it.

Best practices for meta descriptions:

  • Keep it between 150 and 160 characters
  • Include your primary keyword naturally
  • Write it like an advertisement — give people a reason to click
  • Include a call to action where appropriate
  • Every page should have a unique meta description

Good example:

Discover the 10 best personal finance books ever written with detailed
summaries, key lessons, and honest reviews. Start building wealth today.

Heading Structure — H1, H2, H3

Headings organize your content for both readers and search engines. Proper heading structure is essential.

H1 — The main title of your page. Use it once per page. Include your primary keyword. This is what users see as the page headline.

H2 — Major sections of your content. Include secondary keywords naturally. These are the chapter headings of your page.

H3 — Subsections within H2 sections. More specific detail. Include related keywords naturally.

H4 and below — Further subdivision when needed. Less important for SEO but useful for organization.

Never skip heading levels — do not jump from H1 to H3. Never use headings just to make text bold — use them to indicate genuine content hierarchy.

URL Structure

Your URL should be clean, descriptive, and keyword-rich.

Good URL:

yourdomain.com/blog/top-10-personal-finance-books

Bad URL:

yourdomain.com/blog/post?id=47&category=12&date=20260220

Best practices for URLs:

  • Use hyphens to separate words, never underscores
  • Include your primary keyword
  • Keep it as short as possible while remaining descriptive
  • Use lowercase letters only
  • Remove stop words (the, a, and, or, but) unless they are needed for clarity

Image Optimization

Images are an often-overlooked SEO opportunity. Google cannot see images the way humans do — it relies on text signals around images to understand what they contain.

Alt text — Every image should have descriptive alt text that explains what the image shows. Include keywords naturally but never stuff keywords. Alt text also makes your site accessible to visually impaired users.

<!-- Bad -->

code
<img src="image1.jpg" alt="image" />



<!-- Good -->

code
<img src="finance-books-flat-lay.jpg" alt="Top 10 personal finance books arranged on a dark wooden desk" />


File names — Name your image files descriptively before uploading. "psychology-of-money-book-cover.jpg" is better than "IMG_4729.jpg".

File size — Large images slow your site down. Compress all images before uploading. Use WebP format where possible — it is 25 to 35% smaller than JPEG at the same quality.

Lazy loading — Load images only when they enter the viewport. This improves initial page load speed significantly.

Internal Linking

Internal links — links from one page on your site to another page on your site — are one of the most underused SEO techniques.

Internal links do three important things. They help Google discover and crawl all your pages. They pass authority from high-authority pages to lower-authority pages. And they help users navigate your site and find related content, reducing bounce rate.

Best practices:

  • Link to relevant related content naturally within your body text
  • Use descriptive anchor text that tells both users and Google what the linked page is about
  • Every important page on your site should be reachable within 3 clicks from your homepage
  • Fix any broken internal links immediately

Content Length and Depth

Longer content tends to rank better than shorter content — but only when the length is justified by genuine depth and value.

The data consistently shows that the average first-page Google result contains around 1,400 to 1,800 words. For competitive informational queries, the top results are often 2,000 to 4,000 words or more.

But word count is not the goal. Comprehensiveness is the goal. Your content should cover a topic so thoroughly that a reader has no remaining questions after finishing it. If you can do that in 800 words, great. If it takes 5,000 words, that is fine too.

The question to ask is not "is this long enough?" but "have I answered everything a person searching this query could possibly want to know?"

Chapter 5 — Technical SEO — Making Your Site Fast and Crawlable

Technical SEO is what separates amateur websites from professional ones. You can have the best content in the world but if your site is slow, broken, or difficult for Google to crawl, you will not rank.

Core Web Vitals — Google's Page Experience Signals

In 2021 Google made Core Web Vitals an official ranking factor. These are three specific measurements of your page's loading performance, interactivity, and visual stability.

Largest Contentful Paint (LCP) — How long does it take for the largest visible element on the page to load? This is usually the hero image or the main heading. Good LCP is under 2.5 seconds. Poor is over 4 seconds.

First Input Delay (FID) / Interaction to Next Paint (INP) — How quickly does the page respond when a user tries to interact with it? Good INP is under 200 milliseconds.

Cumulative Layout Shift (CLS) — How much does the page layout unexpectedly shift while loading? This is the annoying experience of trying to click something and having it move just before you click. Good CLS is under 0.1.

You can check your Core Web Vitals using Google PageSpeed Insights, Google Search Console, or Lighthouse (built into Chrome DevTools).

Page Speed Optimization

Page speed is both a direct ranking factor and an indirect one — slow pages have higher bounce rates, which signals to Google that users are not satisfied with the page.

Key page speed optimizations:

Compress images — Use WebP format, compress before uploading, implement lazy loading.

Minimize CSS and JavaScript — Remove unused code. Minify files. Split code so only the code needed for the current page loads.

Use a Content Delivery Network (CDN) — CDNs store copies of your site on servers around the world, serving content from the server closest to each visitor. Dramatically improves load time for international visitors.

Enable caching — Browser caching stores static files locally so returning visitors do not have to download them again.

Reduce server response time — Choose a fast hosting provider. Optimize your database queries. Use server-side caching.

For Next.js specifically: Next.js has excellent built-in performance features including automatic image optimization with the Image component, automatic code splitting, and static site generation. Use these features properly and your Core Web Vitals will be excellent by default.

Mobile-First Indexing

Since 2019 Google uses mobile-first indexing — meaning it primarily uses the mobile version of your site for ranking and indexing. If your site looks great on desktop but is broken on mobile, your rankings will suffer.

Every website in 2026 must be fully responsive and work perfectly on all screen sizes. Test your site on multiple devices and screen sizes. Use Google's Mobile-Friendly Test tool to check automatically.

With Tailwind CSS — which your portfolio uses — responsive design is built into the utility class system with sm:, md:, lg: breakpoints. Use them consistently.

XML Sitemaps

An XML sitemap is a file that lists all the important pages on your website, helping Google discover and crawl them efficiently.

For Next.js, you can generate a sitemap automatically using the next-sitemap package:

code
npm install next-sitemap


Create next-sitemap.config.js:

next-sitemap.config.js
module.exports = {
  siteUrl: 'https://yourdomain.com',
  generateRobotsTxt: true,
  sitemapSize: 7000,
}


Add to package.json scripts:

package.json
"postbuild": "next-sitemap"


Submit your sitemap to Google Search Console at:

https://search.google.com/search-console

Robots.txt

The robots.txt file tells search engine crawlers which pages they should and should not crawl. It sits at the root of your domain at yourdomain.com/robots.txt.

A basic robots.txt for a Next.js site:

robots.tsx
User-agent: *
Allow: /
Disallow: /api/
Sitemap: https://yourdomain.com/sitemap.xml


Never accidentally block important pages in your robots.txt. This is one of the most common — and most damaging — technical SEO mistakes.

Structured Data — Schema Markup

Structured data is code you add to your pages to help Google understand the content more precisely. It can also unlock rich results — enhanced search result displays that include star ratings, images, FAQs, breadcrumbs, and more. Rich results dramatically improve click-through rates.

For a blog, the most useful schema types are:

Article schema — Marks up blog posts with author, publish date, and headline information.

BreadcrumbList schema — Shows breadcrumb navigation in search results.

FAQPage schema — If your page has a FAQ section, this can display the questions and answers directly in search results, taking up significantly more space on the results page.

Example Article schema for a blog post:

schema
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "Top 10 Personal Finance Books",
  "author": {
    "@type": "Person",
    "name": "Milan Thapa"
  },
  "datePublished": "2026-02-20",
  "dateModified": "2026-02-20",
  "image": "https://yourdomain.com/images/finance-books.jpg"
}


For Next.js, add structured data by inserting a script tag in your page's head section using the metadata API or a JSON-LD component.

HTTPS

Every website must use HTTPS in 2026. Google confirmed HTTPS as a ranking signal in 2014. Beyond rankings, users and browsers flag HTTP sites as "Not Secure" which destroys trust and click-through rates.

Vercel automatically provides free SSL certificates for all sites deployed on their platform. If you are on Vercel, you are already covered.

Canonical Tags

Canonical tags tell Google which version of a page is the "official" one when the same or similar content appears at multiple URLs. This prevents duplicate content issues.

<link rel="canonical" href="https://yourdomain.com/blog/top-finance-books" />

Next.js App Router handles canonicals through the metadata API:

next.js
export const metadata = {
  alternates: {
    canonical: 'https://yourdomain.com/blog/top-finance-books',
  },
}


Chapter 6 — Content SEO — Writing Content That Ranks and Converts

Content is the reason SEO exists. Without content, there is nothing to rank. And in 2026, with AI generating millions of mediocre articles every day, genuinely excellent content is more valuable — and more rare — than ever.

What Google Means by E-E-A-T

Google evaluates content quality using a framework called E-E-A-T:

Experience — Does the author have real, first-hand experience with the topic? Google increasingly rewards content written by people who have actually done the thing they are writing about.

Expertise — Does the author have deep knowledge of the subject? Is the information accurate, nuanced, and detailed in the way only a true expert's content would be?

Authoritativeness — Is the website and author recognized as an authority in their field? Are other authoritative sites linking to and citing this content?

Trustworthiness — Is the information accurate and honest? Does the site have clear authorship, contact information, and privacy policies?

For a personal blog or portfolio, demonstrating E-E-A-T means writing from your actual experience, being specific and detailed, citing sources, including your name and credentials, and building a track record of reliable content over time.

The Skyscraper Technique

The Skyscraper Technique, developed by Brian Dean of Backlinko, is one of the most reliable frameworks for creating content that ranks.

Step 1 — Find content in your niche that ranks well and has earned backlinks.

Step 2 — Create something significantly better. More comprehensive, more up to date, better designed, with more examples and more actionable advice.

Step 3 — Promote your content to the same people who linked to the original piece.

The logic is simple: if you build the tallest skyscraper in the neighbourhood, people will naturally point to it.

Content Clusters — The Pillar and Cluster Strategy

A content cluster is a group of related pieces of content organized around a central "pillar" page.

The pillar page covers a broad topic comprehensively but at a high level — like this article covering all of SEO.

The cluster pages cover specific subtopics from the pillar in much greater depth — for example, a dedicated article just about keyword research, another just about technical SEO, another just about link building.

All cluster pages link back to the pillar page and to each other. The pillar page links to all cluster pages.

This structure signals to Google that your website has deep, comprehensive knowledge on a topic — which builds authority and improves rankings for all the pages in the cluster simultaneously.

Writing for Both Humans and Search Engines

The best SEO content is written for humans first and search engines second. Google has become extraordinarily sophisticated at evaluating content quality in human terms — does it actually help the reader? Is it well-written? Does it answer the question completely?

Write clearly — Short sentences. Plain language. Active voice. No jargon unless your audience expects and understands it.

Answer the question immediately — Do not bury the answer. Searchers are impatient. Give them what they came for within the first few paragraphs.

Use your keyword naturally — Include your primary keyword in the first 100 words, in at least one H2 heading, and throughout the body text naturally. Do not force it.

Keyword density is dead — Targeting a specific keyword density percentage is outdated advice. Write naturally. If your content is genuinely about a topic, the relevant keywords will appear naturally.

Use related terms and synonyms — Google understands semantic relationships between words. Writing about "personal finance books" should naturally include terms like "money management", "investing", "wealth building", and "financial literacy". This shows Google your content covers the topic thoroughly.

Break up your text — Long paragraphs on screens are hard to read. Use short paragraphs of 2 to 4 sentences. Use subheadings every 300 to 400 words. Use bullet points and numbered lists for scannable information.

Include a table of contents — For long articles, a clickable table of contents helps users navigate and can appear as sitelinks in Google search results.

Update your content regularly — Google favors fresh content. Review and update your most important pages at least once per year. Update the "last updated" date when you make substantial changes.

Featured Snippets — Position Zero

Featured snippets appear above the regular search results — sometimes called "position zero". They show a direct answer to the search query pulled from a webpage.

Getting your content into a featured snippet can dramatically increase your traffic — sometimes doubling click-through rates even from a lower ranking position.

How to optimize for featured snippets:

For paragraph snippets (definitions and explanations): Write a clear, concise definition or explanation of 40 to 60 words immediately after a question-formatted heading.

For list snippets (how-tos and rankings): Use properly formatted HTML lists (ul or ol tags) for any step-by-step processes or ranked items.

For table snippets (comparisons and data): Format comparison information as proper HTML tables.

The key is to identify queries that currently show a featured snippet, write content that directly and concisely answers that query in the appropriate format, and make sure your page ranks in the top 10 for that query.

Chapter 7 — Off-Page SEO and Link Building

If on-page SEO is what you do on your website, off-page SEO is what happens everywhere else. And the most important off-page signal by far is backlinks — links from other websites pointing to yours.

Why Backlinks Matter So Much

Think of backlinks as votes of confidence. When a reputable website links to your content, it is essentially telling Google: "This content is good enough that we want to send our audience to it."

Google's original breakthrough — the PageRank algorithm — was built on this insight. A page that many other pages link to must be important. A page linked to by important pages must be even more important.

Backlinks remain one of the top three ranking factors in Google's algorithm in 2026. The quantity, quality, and relevance of sites linking to you directly affects your authority and your rankings.

Quality matters more than quantity. One link from a high-authority site like the BBC, The New York Times, or a respected industry publication is worth more than 1,000 links from low-quality spam sites.

Relevance matters. A link from a web development blog to your developer portfolio is more valuable than a link from a cooking website.

Anchor text matters. The clickable text of the link tells Google what the linked page is about. "Best Next.js portfolio examples" as anchor text is more valuable than "click here".

White Hat Link Building Strategies

Create linkable assets — The most sustainable link building strategy is creating content so good that people naturally link to it. Original research, comprehensive guides, unique data, and free tools earn links naturally over time.

Guest posting — Write articles for other reputable websites in your niche and include a link back to your site. Effective when done at quality sites with genuine audiences. Avoid low-quality "guest post farms".

Broken link building — Find broken links on other websites that point to content similar to yours. Contact the website owner, let them know about the broken link, and suggest your content as a replacement.

Digital PR — Create newsworthy content — original research, surveys, unique data visualizations — and pitch it to journalists and publications. When they cover it, they link to your original source.

Resource page link building — Many websites have "resources" or "recommended reading" pages. If your content is genuinely excellent, reach out and suggest it for inclusion.

Unlinked brand mentions — Search for mentions of your name or brand online that do not include a link. Contact those websites and politely ask them to add a link to the mention.

HARO (Help a Reporter Out) — Journalists post requests for expert sources. If you can provide valuable quotes or data, you get cited with a link in major publications.

What to Avoid — Black Hat Link Building

Buying links — Google explicitly prohibits paying for links. Penalties can be severe, including manual actions that remove your site from search results entirely.

Private blog networks (PBNs) — Networks of websites created specifically to link to each other. Google is very good at detecting these and the penalties are harsh.

Link exchanges — "I'll link to you if you link to me." Small-scale reciprocal linking between genuinely related sites is fine. Large-scale link exchange schemes are not.

Comment spam — Posting links in blog comments or forum posts purely for the link. These are almost always nofollow links anyway, providing little SEO value, and damage your reputation.

Chapter 8 — Local SEO — Dominating Your Local Market

If you have a business that serves customers in a specific geographic area — or if you are a freelancer in Nepal targeting local clients — local SEO is essential.

Google Business Profile

The single most important thing you can do for local SEO is claim and optimize your Google Business Profile (formerly Google My Business). This is the information panel that appears when someone searches for your business or for businesses like yours near their location.

Optimize your Google Business Profile by:

  • Completing every field completely and accurately
  • Choosing the most specific and accurate primary category
  • Adding high-quality photos of your work, office, or team
  • Collecting and responding to reviews
  • Posting updates regularly
  • Adding your services, hours, and contact information

Local Keywords

Local SEO requires local keywords. Instead of targeting "web developer", target "web developer in Kathmandu" or "freelance developer Nepal". Include your city, region, and country naturally in your content and metadata.

NAP Consistency

NAP stands for Name, Address, and Phone number. Your NAP information must be exactly consistent across your website, Google Business Profile, and every other online directory. Even small inconsistencies — "St." vs "Street", different phone number formats — can confuse Google and hurt your local rankings.

Local Citations

Local citations are mentions of your business on other websites — directories, review sites, industry listings. Building citations on reputable local and industry directories improves your local authority.

Chapter 9 — SEO for Developers and Next.js Sites

Since your portfolio is built with Next.js, here is a specific guide to implementing perfect SEO in your Next.js application.

Metadata API in Next.js App Router

Next.js 13+ introduced a powerful metadata API that makes SEO implementation clean and type-safe.

Static metadata for pages that do not change:

static
import type { Metadata } from 'next'

export const metadata: Metadata = {
  title: 'Milan Thapa — Full Stack Developer',
  description: 'Portfolio of Milan Thapa, a full stack developer from Nepal specializing in Next.js, React, and modern web development.',
  keywords: ['web developer Nepal', 'Next.js developer', 'full stack developer Kathmandu'],
  authors: [{ name: 'Milan Thapa' }],
  creator: 'Milan Thapa',
  openGraph: {
    title: 'Milan Thapa — Full Stack Developer',
    description: 'Portfolio of Milan Thapa, a full stack developer from Nepal.',
    url: 'https://milanthapa.com.np',
    siteName: 'Milan Thapa Portfolio',
    images: [
      {
        url: 'https://milanthapa.com.np/og-image.jpg',
        width: 1200,
        height: 630,
        alt: 'Milan Thapa Portfolio',
      },
    ],
    locale: 'en_US',
    type: 'website',
  },
  twitter: {
    card: 'summary_large_image',
    title: 'Milan Thapa — Full Stack Developer',
    description: 'Portfolio of Milan Thapa, a full stack developer from Nepal.',
    images: ['https://milanthapa.com.np/og-image.jpg'],
  },
  robots: {
    index: true,
    follow: true,
    googleBot: {
      index: true,
      follow: true,
      'max-video-preview': -1,
      'max-image-preview': 'large',
      'max-snippet': -1,
    },
  },
}

Dynamic metadata for blog posts:

dynamic
export async function generateMetadata({
  params,
}: {
  params: Promise<{ slug: string }>
}): Promise<Metadata> {
  const { slug } = await params
  const post = await getPost(slug)

  return {
    title: `${post.title} — Milan Thapa`,
    description: post.excerpt,
    openGraph: {
      title: post.title,
      description: post.excerpt,
      images: [post.mainImage],
      type: 'article',
      publishedTime: post.publishedAt,
      authors: ['Milan Thapa'],
    },
  }
}

Sitemap Generation in Next.js

Next.js App Router has built-in sitemap generation:

Create app/sitemap.ts:

sitemap.ts
import { MetadataRoute } from 'next'
import { client, getAllPostsQuery } from '@/lib/sanity'

export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
  const posts = await client.fetch(getAllPostsQuery)

  const blogPosts = posts.map((post: any) => ({
    url: `https://milanthapa.com.np/blog/${post.slug.current}`,
    lastModified: new Date(post.publishedAt),
    changeFrequency: 'monthly' as const,
    priority: 0.8,
  }))

  return [
    {
      url: 'https://milanthapa.com.np',
      lastModified: new Date(),
      changeFrequency: 'monthly',
      priority: 1,
    },
    {
      url: 'https://milanthapa.com.np/blog',
      lastModified: new Date(),
      changeFrequency: 'weekly',
      priority: 0.9,
    },
    ...blogPosts,
  ]
}


Robots.txt in Next.js

Create app/robots.ts:

robot.txt
import { MetadataRoute } from 'next'

export default function robots(): MetadataRoute.Robots {
  return {
    rules: {
      userAgent: '*',
      allow: '/',
      disallow: '/api/',
    },
    sitemap: 'https://milanthapa.com.np/sitemap.xml',
  }
}

Next.js Image Component for SEO

Always use Next.js's built-in Image component instead of plain img tags. It automatically optimizes images, serves the right size for each device, and improves Core Web Vitals:

import Image from 'next/image'

image component
<Image
  src={imageUrl}
  alt="Descriptive alt text with keywords"
  width={1200}
  height={630}
  priority // for above-the-fold images
/>

Chapter 10 — Measuring SEO Success — Tools and Metrics

You cannot improve what you do not measure. These are the essential tools and metrics for tracking your SEO performance.

Google Search Console — Free and Essential

Google Search Console is the most important SEO tool available and it is completely free. It shows you:

  • Which queries bring traffic to your site
  • Which pages rank for which keywords
  • Your average position for different queries
  • Click-through rates
  • Crawl errors and indexing issues
  • Core Web Vitals data
  • Backlinks to your site

Set it up immediately if you have not already. Go to search.google.com/search-console, add your property, and verify ownership.

Google Analytics 4 — Free Traffic Insights

Google Analytics 4 tracks everything that happens on your website after users arrive from search. Sessions, bounce rate, time on page, conversion events, and much more.

Essential for understanding which content users engage with and which they abandon immediately.

Key SEO Metrics to Track

Organic traffic — How many visitors arrive from search engines each month. Track month over month and year over year.

Keyword rankings — Where your important pages rank for their target keywords. Track weekly using a tool like Ahrefs, SEMrush, or the free Google Search Console.

Click-through rate (CTR) — What percentage of people who see your result in search actually click it. A low CTR suggests your title tag and meta description need improvement.

Bounce rate — What percentage of visitors leave without visiting another page. High bounce rate on an article can indicate the content does not match searcher intent.

Backlinks — How many external sites link to you and the quality of those links. Track with Ahrefs or Google Search Console.

Core Web Vitals scores — Monitor LCP, INP, and CLS in Google Search Console's Core Web Vitals report.

Domain Authority / Domain Rating — Third-party metrics from Moz (DA) and Ahrefs (DR) that estimate your site's overall authority. Not official Google metrics but useful for comparing relative authority.

Chapter 11 — Common SEO Mistakes to Avoid

These are the mistakes that hold most websites back from ranking well.

Targeting keywords that are too competitive. A new blog cannot rank for "personal finance" — that query is dominated by massive, decades-old publications with enormous authority. Start with long-tail, low-competition keywords and build from there.

Writing content without a keyword focus. Every piece of content should have one primary keyword it is trying to rank for. Write it in the title, URL, first paragraph, and throughout the body naturally.

Ignoring page speed. Slow pages lose rankings and lose visitors. A one-second delay in page load time reduces conversions by 7%. Take Core Web Vitals seriously.

Not optimizing for mobile. More than 60% of searches happen on mobile devices. A site that is not mobile-friendly will not rank well.

Duplicate content. The same or very similar content appearing at multiple URLs confuses Google and splits your ranking signals. Use canonical tags to indicate the authoritative version.

Thin content. Short, superficial pages that do not thoroughly answer the search query will not rank for competitive terms. Go deep.

Not building internal links. Every new piece of content should link to related existing content and be linked from related existing content. Internal links spread authority and help Google discover pages.

Expecting immediate results. SEO takes time. A new website typically takes 3 to 6 months to start seeing significant organic traffic. A new blog post can take 3 to 12 months to reach its peak ranking. Be patient and consistent.

Stopping after publishing. Publishing a piece of content is the beginning, not the end. Promote it, build links to it, update it over time, and improve it based on performance data.

Not having a Google Search Console account. This is free, official data from Google about how your site performs in search. Not having it is like driving with your eyes closed.

Chapter 12 — SEO in 2026 — AI, Voice Search, and What's Next

The SEO landscape is changing faster than at any previous point in history. Here is what matters right now and what is coming.

AI-Generated Content and Google

AI tools can now generate SEO-optimized content at scale. The result is an internet increasingly flooded with mediocre, generic, formulaic articles that technically cover a topic but offer no real insight or unique value.

Google has responded by doubling down on E-E-A-T — Experience, Expertise, Authoritativeness, Trustworthiness. They want to reward content written by real humans with real experience and real knowledge — content that could not have been generated by an AI because it contains personal experience, unique perspectives, and genuine expertise.

The lesson: use AI as a research and editing assistant if you choose, but the unique human voice, experience, and insight must be genuinely yours. That is what will differentiate your content in an AI-saturated world.

Google's AI Overview (SGE)

Google has been rolling out AI-generated summaries at the top of search results called AI Overviews. These pull information from multiple sources and present a synthesized answer before the regular search results.

For some queries, this reduces clicks to individual websites. For others — particularly complex, nuanced topics — it increases awareness and drives users to click through for more detail.

The best defense is creating genuinely excellent content that is cited as a source in AI Overviews — which means being authoritative, comprehensive, and trustworthy.

Voice Search Optimization

As smart speakers and voice assistants become ubiquitous, voice search optimization is increasingly important. Voice searches are typically conversational, question-format queries — "what is the best personal finance book for beginners" rather than "best personal finance book beginners".

Optimize for voice search by including FAQ sections written in natural, conversational language, targeting question-format keywords, and aiming for featured snippets which voice assistants often read aloud.

Video SEO

YouTube is the second largest search engine in the world. Video content increasingly appears in regular Google search results. Creating video content with proper titles, descriptions, and transcripts is a growing SEO opportunity.

The Fundamentals Never Change

Despite all the changes in SEO over the years — algorithm updates, AI, voice search, zero-click results — the fundamentals have remained remarkably consistent. Create genuinely useful content for real people. Make your site technically excellent. Build real authority through genuine links and reputation.

The sites that have succeeded at SEO for 10 or 15 years are not the ones that chased every algorithm update. They are the ones that focused on being genuinely the best resource for their topic and let everything else follow.

Chapter 13 — Complete SEO Checklist

Use this checklist for every page you publish.

Keyword Research ✓

  • [ ] Identified primary keyword with appropriate search volume
  • [ ] Checked keyword difficulty — realistic for your site's authority
  • [ ] Confirmed search intent matches your content type
  • [ ] Identified secondary and related keywords to include naturally

On-Page SEO ✓

  • [ ] Primary keyword in title tag, within first 60 characters
  • [ ] Compelling meta description, 150-160 characters
  • [ ] Primary keyword in H1 heading
  • [ ] Primary keyword in first 100 words of body content
  • [ ] Secondary keywords in H2 and H3 headings
  • [ ] URL is clean, short, and includes primary keyword
  • [ ] All images have descriptive alt text
  • [ ] Images are compressed and in WebP format where possible
  • [ ] Internal links to at least 2-3 related pages
  • [ ] External links to authoritative sources where appropriate
  • [ ] Content is comprehensive and fully answers the search query
  • [ ] Table of contents for long articles

Technical SEO ✓

  • [ ] Page loads in under 2.5 seconds
  • [ ] Page is fully mobile-responsive
  • [ ] No broken links on the page
  • [ ] Canonical tag is set correctly
  • [ ] Structured data schema added where appropriate
  • [ ] HTTPS enabled
  • [ ] Page is included in sitemap

Content Quality ✓

  • [ ] Content demonstrates first-hand experience or expertise
  • [ ] Information is accurate and up to date
  • [ ] Writing is clear, well-organized, and genuinely useful
  • [ ] Content is unique — not duplicated from other sources
  • [ ] Author information is clearly displayed
  • [ ] Content is at least as comprehensive as top-ranking competitors

After Publishing ✓

  • [ ] Submitted URL to Google Search Console for indexing
  • [ ] Shared on relevant social media channels
  • [ ] Added internal links from related existing pages
  • [ ] Set reminder to review and update in 6-12 months

Conclusion — SEO Is a Marathon, Not a Sprint

SEO is one of the most powerful marketing channels available to anyone with a website — but it rewards patience, consistency, and genuine quality above all else.

The websites that dominate search results in their niches did not get there overnight. They got there by publishing consistently excellent content, building real authority over years, maintaining technically excellent websites, and never cutting corners on quality.

If you implement everything in this guide — solid keyword research, excellent on-page optimization, fast and technically sound pages, genuinely comprehensive content, and a steady approach to building authority — you will rank. It will take time. But the traffic that comes from organic search is the most valuable traffic available: free, consistent, and compounding.

Start with one thing. Fix your title tags and meta descriptions. Or do keyword research for your next three pieces of content. Or run a PageSpeed Insights test and fix the biggest issues. One step at a time, consistently applied, is how every successful SEO strategy is built.

The best time to start was the day you launched your website. The second best time is today.

Written by Milan Thapa — full stack developer, blogger, and lifelong learner based in Nepal. Building things at the intersection of code, design, and ideas.

Found this guide helpful? Share it with someone who needs it. The best SEO content earns links naturally — because it actually helps people.

fin
Share this article
Back to blogFebruary 20, 2026