WebSite

A WebSite is a set of related web pages and other items typically served from a single web domain and accessible via URLs.

Example eg-0457

Without Markup (source lint)

<p>(A WebSite describing its search options)</p>

RDFa (source lint)

<div vocab="https://schema.org/" typeof="WebSite">
    <link property="url" href="http://www.example.com/"/>
    <form property="potentialAction" typeof="https://schema.org/SearchAction">
      <meta property="target" content="http://www.example.com/search?q={query}"/>
      <input property="query" type="text" name="query">
      <input type="submit">
    </form>
</div>

microdata (source lint)

<div itemscope itemtype="https://schema.org/WebSite">
    <link itemprop="url" href="http://www.example.com/"/>
    <form itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction">
	  <meta itemprop="target" content="http://example.com/search?q={query}"/>
      <input itemprop="query" type="text" name="query"/>
      <input type="submit"/>
    </form>
</div>

JSON-LD (source lint)

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "WebSite",
    "url": "http://example.com/",
    "potentialAction": {
      "@type": "SearchAction",
      "target": "http://example.com/search?&q={query}",
      "query": "required"
    }
}
</script>

structured

rdf:type schema:WebSite
schema:potentialAction
rdf:type schema:SearchAction
schema:query required
schema:target http://example.com/search?&q={query}
schema:url http://example.com/