` tag.", "audience": {"@type": "Audience", "audienceType": "developer, marketer"}, "author": {"@type": "Person", "name": "Pawan Nayar"}, "provider": {"@type": "Organization", "name": "LLOS.ai", "url": "https://llos.ai/"}}, {"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "name": "LLOS.ai", "item": "https://llos.ai/"}, {"@type": "ListItem", "position": 2, "name": "AI Learning", "item": "https://llos.ai/career/ai_learning/"}, {"@type": "ListItem", "position": 3, "name": "How should a developer organize schema data on a web page using `
L
LLLOS.ai
Career
L
◆ AI Learning · Hard rule

How should a developer organize schema data on a web page using `<script type="application/ld+json">`?

A web page should have only one `<script type="application/ld+json">` block for each type of schema. Putting each schema type in its own block makes it simpler to fix problems and add new features. All these blocks must be placed just before the `</body>` tag.

By Pawan Nayar · from the LLOS AI Learning record

The rule

A web page should have only one `<script type="application/ld+json">` block for each type of schema.

Putting each schema type in its own block makes it simpler to fix problems and add new features. All these blocks must be placed just before the `</body>` tag.

A developer should use one `<script type="application/ld+json">` block for each type of schema. For example, use one block for 'Article' schema and another for 'Organization' schema. This method makes it easier to find and fix errors. It also makes it simpler to update or add to each schema type separately. All these script blocks must be placed right before the closing `</body>` tag on the web page.

A developer is building a website. The website needs to show information about an article and the company that published it. The developer creates one `<script type="application/ld+json">` block for the 'Article' schema. The developer creates a separate `<script type="application/ld+json">` block for the 'Organization' schema. Both blocks are placed just before the `</body>` tag. If there is a problem with the article's information, the developer only needs to check that specific block.

Words you'll need

Resolved from this lesson's own record — real definitions, not invented for this page.

Knowledge Representation

How AI stores and uses information it knows

Information Extraction

Getting specific facts out of messy text

Data Integration

Combining information from different sources into one place

Questions people ask

More from the same record, pulled by shared topic — not written new for this page.

How is a career's web page created from its stored information?

A career's web page content comes from specific data. The main title and other names for the career are used.

How can a developer test web pages that load data at runtime when working with local files?

A developer must open at least one rendered page in a web browser. The developer should use the `file://` protocol.

How does a developer add a new interactive chart to a website?

A developer creates a new HTML file for the chart. This file contains all the chart's features.

How can an AI model create thousands of SEO-optimized web pages from word lists?

A developer uses a two-step system. The first step uses an AI model to create content for each page.

What to remember

A web page should have only one `<script type="application/ld+json">` block for each type of schema. Putting each schema type in its own block makes it simpler to fix problems and add new features. All these blocks must be placed just before the `</body>` tag.