Menu

How to Add JSON-LD Structured Data to a Travel Destination Page
📰

How to Add JSON-LD Structured Data to a Travel Destination Page

DEV Community: html·Shashi Ranakoti·26 days ago
#ijbzbtGC
#devto2#devto#dev#type#json
Long article (741 words) — no AI summary yet.
Reading 0:00
15s threshold

Structured data helps search engines understand what a page is about. In this tutorial, we'll add JSON-LD markup to a destination page, using a page about Rajaji National Park in Uttarakhand, India as the example.

You don't need a framework. Everything below works in plain HTML.

What is JSON-LD?

JSON-LD is a block of JSON placed inside a <script> tag. It describes your page in a format that search engines can read, without changing what visitors see. Google recommends JSON-LD over other structured data formats.

Step 1: Add a TouristAttraction block

Place this in the <head> or at the end of the <body> :

<script type = "application/ld+json" > { "@context" : "https://schema.org" , "@type" : "TouristAttraction" , "name" : "Rajaji National Park" , "description" : "A protected forest in the Shivalik foothills of Uttarakhand, India, known for Asian elephants, birdlife and jungle safaris." , "url" : "https://www.rishikeshtigersafari.com/rajaji-national-park-uttarakhand" , "address" : { "@type" :…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.