Home > Tools > Free Schema Markup Generator

Official Schema Type Support

Free Legislation Schema Markup Generator (JSON-LD)

A legal document such as an act, decree, bill, etc. Configure verified Legislation properties in real time, copy clean straight-quote JSON-LD code, and validate rich snippet eligibility in seconds.

Legislation
Official Schema.org Class • Google Rich Results Eligible
Content
About Legislation: A legal document such as an act, decree, bill, etc. Official Schema Type Support
Fill required fields (Legislation)
JSON-LD
// Generating live JSON-LD...
✓ Copied to clipboard!

Official Schema Type Support

What Is Legislation Schema Markup and When Should You Use It?

Official Definition: A legal document such as an act, decree, bill, etc. Implementing valid Legislation JSON-LD structured data gives search engines and AI systems clear entity classification aligned with the visible information on your page.

Websites operating in editorial publishing and digital content discovery benefit from marking up pages with the exact Legislation type rather than relying on overly broad labels. Designed for publishers, blogs, SaaS documentation hubs, media teams, and educators, this markup pattern helps your site clarify authorship, publication dates, headlines, subject matter, and content ownership for search and AI citations.

Primary Use Cases and Page Eligibility for Legislation

Use Legislation JSON-LD on any canonical landing page whose primary topic directly represents this entity. Every property declared inside your structured data block—such as titles, identifiers, URLs, schedules, prices, or contact fields—should match what human visitors see on that page. Publishing accurate Legislation markup reduces entity ambiguity for web crawlers, strengthens Knowledge Graph reconciliation, and improves machine readability across both traditional organic results and modern AI search experiences.

In the Schema.org taxonomy, Legislation inherits properties downward from CreativeWork and root ancestors. That inheritance model allows your JSON-LD payload to combine specialized Legislation attributes with foundational fields like name, description, url, and sameAs:

Explore closely related Schema.org classes if your page represents a narrower specialization or sibling entity:

Search Visibility Analysis

Google Rich Results Eligibility and SEO Impact for Legislation

Search Engine Signal Role: While Legislation does not trigger a standalone Google rich snippet badge by itself, it acts as a core semantic and entity-disambiguation class within official Schema.org standards and nested Knowledge Graph structures.

Many high-authority sites use Legislation either as the primary subject of dedicated pages or nested inside parent entities such as WebPage, Organization, or ItemList. Even without a visual SERP badge, explicit JSON-LD helps search crawlers, voice assistants, and AI answer engines classify your content accurately and verify relationships with your brand.

Official Vocabulary Reference

Complete Official Legislation Properties Reference

The reference table below documents key official properties available for Legislation (including 20 direct properties defined specifically on this class and inherited attributes from CreativeWork up to Thing). Use the Additional Properties search bar inside the generator above to insert any of these fields into your live JSON-LD script.

Direct and Inherited Legislation Properties Table

Property NameDefined OnExpected Value TypePractical Usage Guidance
jurisdictionLegislationText or Nested TypeDefines the jurisdiction attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationAmendsLegislationText or Nested TypeDefines the legislation amends attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationAppliesLegislationText or Nested TypeDefines the legislation applies attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationChangesLegislationText or Nested TypeDefines the legislation changes attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationCommencesLegislationText or Nested TypeDefines the legislation commences attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationConsolidatesLegislationISO 8601 Date / DateTimeUse ISO 8601 formatting such as YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS+00:00 for consistent parsing.
legislationCorrectsLegislationText or Nested TypeDefines the legislation corrects attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationCountersignedByLegislationNumber or TextEnter numeric values without formatting symbols alongside an explicit currency or unit property where applicable.
legislationDateLegislationISO 8601 Date / DateTimeUse ISO 8601 formatting such as YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS+00:00 for consistent parsing.
legislationDateOfApplicabilityLegislationISO 8601 Date / DateTimeUse ISO 8601 formatting such as YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS+00:00 for consistent parsing.
legislationDateVersionLegislationISO 8601 Date / DateTimeUse ISO 8601 formatting such as YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS+00:00 for consistent parsing.
legislationEnsuresImplementationOfLegislationText or Nested TypeDefines the legislation ensures implementation of attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationIdentifierLegislationText or Nested TypeDefines the legislation identifier attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationJurisdictionLegislationText or Nested TypeDefines the legislation jurisdiction attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationLegalForceLegislationText or Nested TypeDefines the legislation legal force attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationPassedByLegislationText or Nested TypeDefines the legislation passed by attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationRepealsLegislationText or Nested TypeDefines the legislation repeals attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationResponsibleLegislationText or Nested TypeDefines the legislation responsible attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationTransposesLegislationText or Nested TypeDefines the legislation transposes attribute associated with this Legislation structured data entity when explicitly shown on the page.
legislationTypeLegislationText or Nested TypeDefines the legislation type attribute associated with this Legislation structured data entity when explicitly shown on the page.
aboutCreativeWorkText or Nested TypeDefines the about attribute associated with this Legislation structured data entity when explicitly shown on the page.
abstractCreativeWorkTextWrite a concise, accurate plain-text summary describing this specific Legislation without promotional clutter.
accessModeCreativeWorkText or Nested TypeDefines the access mode attribute associated with this Legislation structured data entity when explicitly shown on the page.
accessModeSufficientCreativeWorkText or Nested TypeDefines the access mode sufficient attribute associated with this Legislation structured data entity when explicitly shown on the page.
accessibilityAPICreativeWorkText or Nested TypeDefines the accessibility api attribute associated with this Legislation structured data entity when explicitly shown on the page.
accessibilityControlCreativeWorkText or Nested TypeDefines the accessibility control attribute associated with this Legislation structured data entity when explicitly shown on the page.
accessibilityFeatureCreativeWorkText or Nested TypeDefines the accessibility feature attribute associated with this Legislation structured data entity when explicitly shown on the page.
accessibilityHazardCreativeWorkText or Nested TypeDefines the accessibility hazard attribute associated with this Legislation structured data entity when explicitly shown on the page.
accessibilitySummaryCreativeWorkText or Nested TypeDefines the accessibility summary attribute associated with this Legislation structured data entity when explicitly shown on the page.
accountablePersonCreativeWorkNumber or TextEnter numeric values without formatting symbols alongside an explicit currency or unit property where applicable.
acquireLicensePageCreativeWorkText or Nested TypeDefines the acquire license page attribute associated with this Legislation structured data entity when explicitly shown on the page.
aggregateRatingCreativeWorkAggregateRating / RatingOnly include verified rating values visible to users on the page, accompanied by ratingValue and reviewCount.
alternativeHeadlineCreativeWorkText or Nested TypeDefines the alternative headline attribute associated with this Legislation structured data entity when explicitly shown on the page.
archivedAtCreativeWorkText or Nested TypeDefines the archived at attribute associated with this Legislation structured data entity when explicitly shown on the page.
assessesCreativeWorkText or Nested TypeDefines the assesses attribute associated with this Legislation structured data entity when explicitly shown on the page.
associatedMediaCreativeWorkText or Nested TypeDefines the associated media attribute associated with this Legislation structured data entity when explicitly shown on the page.
audienceCreativeWorkText or Nested TypeDefines the audience attribute associated with this Legislation structured data entity when explicitly shown on the page.
audioCreativeWorkText or Nested TypeDefines the audio attribute associated with this Legislation structured data entity when explicitly shown on the page.
authorCreativeWorkOrganization or PersonNest a Person or Organization object with a verified name and canonical url rather than leaving plain ambiguous strings.
awardCreativeWorkText or Nested TypeDefines the award attribute associated with this Legislation structured data entity when explicitly shown on the page.
characterCreativeWorkText or Nested TypeDefines the character attribute associated with this Legislation structured data entity when explicitly shown on the page.
citationCreativeWorkText or Nested TypeDefines the citation attribute associated with this Legislation structured data entity when explicitly shown on the page.

Ready-to-Use Markup

Valid Legislation JSON-LD Code Example

Below is a clean starting template for Legislation structured data formatted with strict straight double quotes ("). When deploying Legislation on a production page, you can either publish it as the top-level entity on dedicated pages or reference it inside parent properties such as mainEntity, about, or mentions. Replace the placeholder values inside the interactive generator above with your verified live business, content, or specification details before copying to your site.

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "Legislation",
    "name": "Example Legislation",
    "description": "A legal document such as an act, decree, bill, etc.",
    "url": "https://example.com/legislation/"
}
</script>

Before pushing live updates across templates or CMS posts, verify that every URL inside the JSON-LD snippet resolves with HTTP 200 status and that numeric units, ISO dates, and entity titles match the visible copy visitors read in the browser.

Implementation Guide

How to Add Legislation Schema Markup to WordPress and HTML

1

Adding Legislation Schema in WordPress or Elementor

Configure your fields in the generator above and click Copy JSON-LD. Open your target WordPress post or Elementor page, insert a Custom HTML widget (or page header script manager), paste the complete <script type="application/ld+json"> block, and save your changes.

2

Validating Legislation Structured Data

For static HTML websites, place the script inside the <head> or before the closing </body> tag. Immediately run your live URL or pasted code through Schema Markup Validator and Google Rich Results Test to verify zero syntax errors or missing required fields.

Quality Checklist

Common Legislation Schema Mistakes to Avoid

Hidden or Mismatched Data

Every property in your Legislation JSON-LD must correspond directly to information visible on the page. Hidden metadata or synthetic ratings violate search guidelines.

Incorrect ISO Formats and URLs

Dates must follow YYYY-MM-DD, durations must use ISO 8601 strings, and URLs in url, image, and sameAs should use absolute HTTPS links.

Empty Fields or Curly Quotes

Never publish empty property placeholders or smart typography curly quotes inside JSON-LD. Always inspect copied code or generate directly through the live studio above.

Frequently Asked Questions

Legislation Schema Markup FAQs

What is Legislation Schema markup used for?

Legislation is an official Schema.org entity type used in editorial publishing and digital content discovery. Adding it in JSON-LD helps search engines and AI systems identify key attributes accurately from your page content.

Does Legislation inherit properties from CreativeWork?

Yes. In the official hierarchy (Thing > CreativeWork > Legislation), Legislation inherits standard properties from CreativeWork and foundational attributes from Thing, all accessible in our Additional Properties picker.

Does Legislation qualify for Google Rich Results?

Legislation serves primarily as a semantic entity and Knowledge Graph clarity signal rather than a standalone SERP rich badge, making it valuable for structured entity understanding and nested graphs.

How many properties should I include in Legislation JSON-LD?

Only populate properties that accurately reflect verified details visible on the page—typically core identifiers such as name, description, and url plus specific attributes from the Legislation properties table above. Quality and accuracy matter far more than stuffing unnecessary empty keys.

Should I use JSON-LD instead of Microdata for Legislation?

Yes. Google recommends JSON-LD because you can manage, edit, and validate the complete Legislation script block without modifying theme HTML tags or risking layout regressions.

Official Schema Type Support

Explore All 760+ Schema.org Types

Select any Schema.org class below to open its dedicated JSON-LD generator, official properties table, and code example.

0-9 Schema Types (1)

Z Schema Types (1)

Technical SEO Support

Need Help Deploying Structured Data Across Your Website?

SHIED WORLD helps businesses implement entity-driven Technical SEO, dynamic schema graphs, and AI search optimization built for measurable organic growth.