Online courses are everywhere now: programming, English, accounting, design and even cooking are sold directly from a school's own website. To a search engine, though, a course page is just text until you state explicitly that it describes a course. The schema.org vocabulary provides the Course type for exactly this. It expresses the course name, description, who runs it, the language, the format and the duration in a machine-readable way. This guide covers how to write the markup, which properties are worth adding and which mistakes to avoid.
What Course markup does and does not do
Structured data lets a search engine understand a page without guessing. On a course page, details such as price, schedule, instructor and certificate are usually scattered across several blocks, and the markup gathers them into one tidy object. How Google displays courses in search has changed over time, and some course-specific features have been scaled back, so treat the markup as a way to describe the page accurately rather than a guarantee of a fancy snippet. Check the Course section of Google Search Central periodically for the current status.
The benefit is not limited to Google. Bing, Yandex and AI-based search assistants also read JSON-LD, and a page that clearly states the course name, provider and language is a better candidate for queries like "Python course in Tashkent".
Core properties, from name to course instance
The heart of a Course object is three fields: name, description and provider, usually an Organization with the school name and website. Useful optional fields follow: inLanguage for the teaching language, offers for price and currency, and hasCourseInstance for the concrete delivery format.
A CourseInstance represents one run of the course. The same course might have a daytime classroom group and an evening online group, and each becomes its own instance with courseMode (online, onsite or blended) plus either courseWorkload (total effort as an ISO 8601 duration, where PT40H means 40 hours) or courseSchedule. The teacher can be added as a Person in instructor.
Example: an IT training centre in Tashkent
Imagine a training centre in Chilanzar offering "Python Programming Basics": three months, taught in Uzbek, online, three sessions a week, on the placeholder site example.uz.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Course",
"name": "Python Programming Basics",
"description": "Python from scratch: variables, functions, working with files and a small project.",
"inLanguage": "uz",
"provider": {
"@type": "Organization",
"name": "Misol IT Academy",
"sameAs": "https://example.uz"
},
"offers": {
"@type": "Offer",
"category": "Paid",
"price": "1200000",
"priceCurrency": "UZS"
},
"hasCourseInstance": {
"@type": "CourseInstance",
"courseMode": "online",
"courseSchedule": {
"@type": "Schedule",
"repeatFrequency": "P1W",
"repeatCount": 12,
"duration": "PT2H"
},
"instructor": {"@type": "Person", "name": "Aziz Karimov"}
}
}
</script>
The price is only a sample; use the real price shown on your page. For a free course set category to Free and the price to 0. Everything in the markup must also be visible to visitors, because data that appears only in JSON-LD can be treated as a policy violation.
Several courses: ItemList on the catalogue page
A page listing all courses should use an ItemList whose ListItem entries point to individual course pages, while the full Course markup lives on each course page. This avoids duplicated data and shows the site structure clearly.
{
"@context": "https://schema.org",
"@type": "ItemList",
"itemListElement": [
{"@type": "ListItem", "position": 1, "url": "https://example.uz/courses/python"},
{"@type": "ListItem", "position": 2, "url": "https://example.uz/courses/frontend"},
{"@type": "ListItem", "position": 3, "url": "https://example.uz/courses/sql"}
]
}
Common mistakes
Marking up things that are not courses is the most frequent problem: a blog post, a single video lesson or a webinar announcement should use Article or Event instead. Writing durations as plain text such as "3 months" is another, since these fields expect ISO 8601 values like P3M. Leaving out the provider makes a course look anonymous and untrustworthy. Finally, any aggregateRating must come from genuine student reviews shown on your own page; invented or copied ratings break Google's guidelines and can lead to manual actions.
Adding and testing the markup
SEO plugins such as Rank Math or Yoast generate some schema automatically, but hand-written JSON-LD is often more precise for courses. LMS platforms like Moodle or LearnDash may add their own markup, so make sure a page does not end up with two conflicting Course objects. After publishing, test the URL with Google's Rich Results Test and the Schema Markup Validator, then watch the enhancement reports in Search Console. If your site is hosted on sayt.uz, you can edit the template through the ISPmanager panel and retest right away. Keep the page fast and crawlable too, otherwise even perfect JSON-LD will never be read.