Structured Data: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
(Nieuwe pagina aangemaakt met '''Structured Data'' is a protocol from Google to make web pages more understandable for Google. Example [https://developers.google.com/search/docs/appearance/struc...') |
|||
Regel 1: | Regel 1: | ||
''Structured Data'' is a protocol from Google to make web pages more understandable for Google. | ''Structured Data'' is a protocol from Google to make web pages more understandable for Google. | ||
− | Example [https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data]: | + | == Include in head == |
+ | |||
+ | ''Structured data'' is of the type <code>script type="application/ld+json"></code> and should be put in the ''head'' part of a page. | ||
+ | |||
+ | == Example == | ||
+ | |||
+ | [https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data]: | ||
<pre> | <pre> |
Versie van 16 mei 2023 19:25
Structured Data is a protocol from Google to make web pages more understandable for Google.
Include in head
Structured data is of the type script type="application/ld+json">
and should be put in the head part of a page.
Example
[1]:
<html> <head> <title>Party Coffee Cake</title> <script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "Recipe", "name": "Party Coffee Cake", "author": { "@type": "Person", "name": "Mary Stone" }, "datePublished": "2018-03-10", "description": "This coffee cake is awesome and perfect for parties.", "prepTime": "PT20M" } </script> </head> <body> <h2>Party coffee cake recipe</h2> <p> <i>by Mary Stone, 2018-03-10</i> </p> <p> This coffee cake is awesome and perfect for parties. </p> <p> Preparation time: 20 minutes </p> </body> </html>