Looking For An Online HTML5 Coding Course

WCD Admin

Affiliate Guard Dog Member
Joined
Jun 15, 2007
Messages
1,160
Reaction score
98

edgarf76

Affiliate Guard Dog Member
Joined
Oct 10, 2013
Messages
1,126
Reaction score
249
Proper HTML5 Structured Data Nesting
Hey guys and gals. I am getting nesting errors in gwt. I am trying to figure out the proper nesting for scripts like the ones below.

<script type="application/ld+json">
// Casino Affiliates searched for 'Where The Best Casino Affiliate Programs?'.
{
"@context": "http://schema.org",
"@type": "SearchAction",
"agent": {
"@type": "Person",
"name": “Affiliates"
},
"query": “Where The Best Casino Affiliate Programs?"
}
</script>



Should I combine that script with this one or something like this?


<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "http://yoursite.example/",
"potentialAction": {
"@type": "SearchAction",
"target": “http://yoursite.example/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}

Any help would be appreciated. Thanks.
 
Top