accesseo
accesseo copied to clipboard
microdata : possibilités de les trouver et de les afficher ?
[Section SEO]
Regarder s'il y a un moyen de savoir s'il y a des microdata dans la page, et si oui, afficher un tableau avec :
- nom de l'itemscope (+ afficher la balise complète)
- le type (+ afficher la balise complète)
- est ce qu'on affiche tous les itemprop ?
- voir si on peut ajouter un bouton "envoyer l'html pour tester si l'implémentaiton est correct " vers https://validator.schema.org/
/!\ un itemsecope peut en contenir plusieurs :
<div itemscope itemtype="https://schema.org/SoftwareApplication">
<span itemprop="name">Angry Birds</span> -
NÉCESSITE <span itemprop="operatingSystem">ANDROID</span><br>
<link itemprop="applicationCategory" href="https://schema.org/GameApplication"/>
<div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
ÉVALUATION :
<span itemprop="ratingValue">4.6</span> (
<span itemprop="ratingCount">8864</span> notes )
</div>
<div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
Prix : <span itemprop="price">1.00</span>$
<meta itemprop="priceCurrency" content="USD" />
</div>
</div>
Attentions les micro data peuvent également être au format JSON. Par exemple :
<script type="application/ld+json">
{
"@context":"https:\/\/schema.org",
"@type":"JobPosting",
"url":"https:\/\/myjob.company\/fr\/gestionnaire-flotte-automobile-f-h-92500-rueil-malmaison-1191601128",
"image":"https:\/\/myjob.company\/fr\/offres-emploi\/1191601128\/qysr9l.jpg",
"name":"Gestionnaire - Flotte automobile. F\/H",
"title":"Gestionnaire - Flotte automobile. F\/H",
"description":"<p>Rattaché à la Direction Commerciale et Marketing ...<\/p>",
"responsibilities":"<p>Les missions de votre futur ...<\/p>",
"employerOverview":"<p>D’origine Néerlandaise et créée en 1963, ...<\/p>",
"industry":"Automobile",
"employmentType":"FULL_TIME",
"jobLocation":{
"@type":"City",
"address":{
"@type":"PostalAddress",
"postalCode":"92500",
"addressLocality":"RUEIL MALMAISON",
"addressCountry":"France"
}
},
"skills":[
"Aisance relationnelle",
"Relation BtoB",
"Rigueur et organisation"
],
"baseSalary":{
"@type":"MonetaryAmount",
"currency":"EUR",
"value":{
"@type":"QuantitativeValue",
"minValue":27000,
"maxValue":35000,
"unitText":"YEAR"
}
},
"hiringOrganization":{
"@type":"Organization",
"name":"LeasePlan"
},
"experienceRequirements":"3 à 5 ans",
"datePosted":"2021-09-02T07:52:58+00:00"
}
</script>