Learning Hub — Beginner's Guide
⭐ Beginner — No coding experience needed

What you will learn in this guide

1 What is schema markup — and why does it matter?

Before you touch any code, you need to understand what schema markup is, what it does, and why Google rewards pages that have it.

What schema markup actually is

Schema markup is a piece of code — written in a format called JSON-LD — that you add to your HTML file. It does not change how your page looks to visitors. What it does is give Google a precise, machine-readable description of what your page contains. Instead of Google having to guess whether your page is a recipe, a product, a local business, or an FAQ — you tell it directly.

What are rich results?

When Google understands your page content through schema markup, it can display your search result in an enhanced format called a rich result. These take up more space on the search results page and stand out visually from standard results. Examples include:

Schema typeWhat it unlocks in Google
FAQPageExpandable FAQ questions shown directly below your result
ProductStar ratings, price, and availability shown in search results
ArticleAuthor name, date published, and image shown in results
LocalBusinessAddress, phone, opening hours shown in Google Maps and search
HowToStep-by-step instructions shown directly in search results
RecipeCooking time, ratings, and calories shown in results

What happens if your page has no schema markup

Without schema markup your page appears as a standard plain result in Google — just a title, URL and meta description. Your competitors who have schema markup get richer, more prominent results that attract more clicks even if they rank lower than you. You are essentially giving away clicks for free.

❌ Without schema markup
Standard blue title yourdomain.com/page Short description of the page content.
✅ With FAQPage schema
Enhanced title with more visibility yourdomain.com/page Short description of the page content. ▼ What is schema markup? ▼ How do I add schema to my page? ▼ Is schema markup free?

2 Check if your page has schema markup

Before you add anything, find out whether your page already has schema markup and if so whether it is valid.

  1. 1 Go to the AIPageSEO audit tool Open a new browser tab and go to https://aipageseo.com/seo-audit-platform.html. You do not need an account.
  2. 2 Enter your page address Type the full address of the page you want to check, for example https://yourdomain.com. Make sure you include the https:// at the start.
  3. 3 Click Run Audit and wait It usually takes 10–30 seconds. Do not close the tab or refresh while it runs.
  4. 4 Find the Schema Markup result Scroll down to the Schema or Structured Data section. Look for the Schema row:
    StatusWhat it meansWhat to do
    🔴 MissingNo schema markup found at allFollow all steps in this tutorial
    🔴 Invalid JSONSchema exists but contains errorsUse the Schema Generator to create a clean replacement
    🟡 Wrong typeSchema type does not match page contentGenerate the correct type — see Section 3
    🟡 Missing fieldsSchema exists but is incompleteRegenerate with all required fields
    🟢 PassSchema is valid and completeNo action needed right now
💡 Also check with Google's Rich Results Test Go to https://search.google.com/test/rich-results, enter your page URL and Google will tell you exactly which rich results your page is eligible for and flag any errors in your schema.

3 Choose the right schema type for your page

Before you generate anything, you need to know which schema type matches your page. Using the wrong type means Google will not display rich results for it. Use the table below to identify yours.

Your page is...Schema type to use
A blog post or news articleArticle or BlogPosting
A product or shop pageProduct
A page with questions and answersFAQPage
A step-by-step guide or tutorialHowTo
A local business location pageLocalBusiness
A recipeRecipe
An eventEvent
A review or review pageReview or AggregateRating
A general website homepageWebSite or Organization
💡 You can have more than one schema type on a page. For example a blog post page can have both Article schema and FAQPage schema if it contains FAQ content. The AIPageSEO Schema Generator will suggest the most appropriate types for your page automatically.

4 Generate your schema markup using AIPageSEO

You do not need to write schema markup by hand. The AIPageSEO Schema Generator reads your page and creates valid, correctly formatted schema code for you. Here is exactly how to use it.

  1. 1 Go to the AIPageSEO Schema Generator Open a new browser tab and go to https://aipageseo.com/schema-tools.html.
  2. 2 Enter your page URL Type the full URL of the page you want to add schema to, for example https://yourdomain.com/about. The tool will read your page content and suggest the most appropriate schema types.
  3. 3 Select your schema type The generator will suggest types based on your page content. Select the one that matches your page from Section 3 above. If you are unsure, the tool will highlight the most suitable option.
  4. 4 Review and complete the fields The generator will pre-fill as many fields as it can from your page content. Check each field and fill in any that are empty. For example if it is a LocalBusiness schema, make sure your address, phone number and opening hours are correct.
  5. 5 Generate the code Click the Generate Schema button. The tool will produce a block of JSON-LD code. It will look something like this:
    <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "headline": "Your Page Title", "author": { "@type": "Person", "name": "Your Name" }, "datePublished": "2026-01-01" } </script>
  6. 6 Copy the generated code Click the Copy button or select all the generated code and press Ctrl + C (Windows) or ⌘ Cmd + C (Mac) to copy it. Keep this tab open — you will paste this code into your HTML file in the next section.

5 Add the schema code to your HTML file

You now have your generated schema code copied. In this section you will open your HTML file in Notepad++ and paste the code into the correct place.

Where does schema markup go in the file?

Schema markup must go inside the <head> section of your HTML file — the same area where your title tag and meta description live. It must go before the closing </head> tag. If you put it in the wrong place it will not work.

  1. 1 Open FileZilla and connect to your server Fill in the four boxes at the top of FileZilla — Host, Username, Password, leave Port blank — and click Quickconnect. If you need help with this see the Before You Start guide linked above.
  2. 2 Navigate to your website folder Double-click httpdocs (Plesk) or public_html (cPanel) in the right panel to see your website files.
  3. 3 Download a backup copy first Right-click the file you want to edit and choose Download. In the left panel rename the downloaded file to filename-backup.html. Then download the file again to your Desktop as your working copy.
  4. 4 Open the file in Notepad++ Open Notepad++ → File → Open → navigate to your Desktop → click the file → click Open.
  5. 5 Find the closing head tag Press Ctrl + F. In the search box type </head> and press Enter. Notepad++ will jump to that line. This is where you will paste your schema code — on a new line just before </head>.
  6. 6 Click just before the closing head tag Click at the very beginning of the </head> line. Press Enter to create a new blank line above it. Your cursor should now be on the blank line above </head>.
  7. 7 Paste your schema code Press Ctrl + V (Windows) or ⌘ Cmd + V (Mac) to paste the schema code you copied from the AIPageSEO Schema Generator. The code will appear on the blank line above </head>. Your file should now look like this:
    <meta name="description" content="Your description here." /> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "headline": "Your Page Title" } </script> </head>
  8. 8 Save the file Press Ctrl + S. The red dot on the tab disappears when the file is saved.

6 Upload your file and verify the schema

  1. 1 Switch back to FileZilla Click on the FileZilla window in your taskbar. If it has disconnected, fill in the boxes again and click Quickconnect.
  2. 2 Upload the edited file Find the edited file on your Desktop in the left panel. Right-click it and choose Upload. Click Overwrite when prompted. When the progress bar disappears the upload is complete.
  3. 3 Verify the schema is live Go to https://search.google.com/test/rich-results and enter your page URL. Google will confirm whether it can detect your schema markup and whether your page is now eligible for rich results.
  4. 4 Request indexing in Google Search Console Log in to Google Search Console, use the URL Inspection tool, enter your page URL and click Request Indexing. This speeds up Google discovering your new schema markup.
✅ Tutorial complete — your schema markup is added and Google has been notified.

7 Common mistakes to avoid

  1. Pasting schema in the wrong place Schema markup must go inside the <head> section — not in the <body>. If you paste it in the wrong place Google will not find it. Always search for </head> and paste just before it.
  2. Using the wrong schema type Adding Article schema to a product page or FAQPage schema to a homepage will not unlock rich results for those pages. Match the schema type to the actual content on the page — refer to the table in Section 3.
  3. Leaving required fields empty Each schema type has required fields. A Product schema without a price, or an Article schema without an author, will fail Google's rich results validation. The AIPageSEO Schema Generator flags missing required fields — fill them all in before copying the code.
  4. Breaking the JSON with a typo If you manually edit the generated schema code and accidentally delete a quote mark, comma or curly bracket, the entire block becomes invalid. If this happens, go back to the AIPageSEO Schema Generator and generate a fresh copy rather than trying to fix it by hand.
  5. Expecting rich results immediately Google may take days or weeks to start showing rich results even after your schema is valid and indexed. Rich results are not guaranteed — Google decides whether to show them based on various quality signals. A valid schema is the first step, not an instant guarantee.
Written by
John
Founder, AIPageSEO

I built AIPageSEO because every SEO audit tool I tried was either guesswork dressed up as data, misleading, or buried the features that actually do the job behind an expensive subscription. AIPageSEO is my answer — a no-sign-up platform with 75+ professional tools covering Core Web Vitals, E-E-A-T, schema generation, and AEO visibility for AI search engines like ChatGPT and Perplexity. Try the free tools and see what your site is actually missing — then decide if a Bronze plan is right for you. I write these beginner guides because I remember exactly what it felt like to not know where to start, and I believe nobody should have to figure this out alone.

Schema markup was one of the first things I built into AIPageSEO because it is one of the most misunderstood wins in SEO. Most site owners have never heard of it. The ones who add it correctly start appearing in richer, more prominent search results almost immediately — and it costs nothing but ten minutes of your time.