Note: You are viewing the development version of Schema.org. See how we work for more details.

cssSelector

A Schema.org Property
A CSS selector, e.g. of a SpeakableSpecification or WebPageElement. In the latter case, multiple matches within a page can constitute a single conceptual "Web page element".

Values expected to be one of these types

Used on these types

Source

https://github.com/schemaorg/schemaorg/issues/1389


Examples

Example 1
Copied
Example notes or example HTML without markup.
An example of 'speakable' markup (JSON-LD only, initially).
Example encoded as JSON-LD in a HTML script tag.
{
"@context": "https://schema.org/",
"@type": "WebPage",
"name": "Jane Doe's homepage",
"speakable":
{
"@type": "SpeakableSpecification",
"cssSelector": ["headline", "summary"]
},
"url": "http://www.janedoe.com"
}
Structured representation of the JSON-LD example.
Example 2
Copied
Example notes or example HTML without markup.
An example of speakable markup in Microdata in HTML head section.
Example encoded as Microdata embedded in HTML.
<!DOCTYPE html>
<html>
<head rel="home" href="/?originalUrl=https%3A%2F%2Fschema.org%2F%26%2334%3B%2F%26%2334%3B%2520itemid%3D%26%2334%3B%26%2334%3B%2520%2520itemscope%2520itemtype%3D%26%2334%3Bhttps%3A%2F%2Fschema.org%2FSpeakableSpecification%26%2334%3B%26gt%3B%26lt%3Btitle%26gt%3BExample%2520showing%2520complex%2520structures%2520in%2520HTML%2520head%26lt%3B%2Ftitle%26gt%3B%26lt%3Bmeta%2520itemprop%3D%26%2334%3BcssSelector%26%2334%3B%2520content%3D%26%2334%3B.title%26%2334%3B%2520%2F%26gt%3B%26lt%3Bmeta%2520itemprop%3D%26%2334%3Bxpath%26%2334%3B%2520content%3D%26%2334%3B%2Fhtml%2Fbody%2Fh3%26%2334%3B%2520%2F%26gt%3B%26lt%3B%2Fhead%26gt%3B%26lt%3Bbody%26gt%3B%26lt%3Bh1%2520class%3D%26%2334%3Btitle%26%2334%3B%26gt%3BComplex%2520Microdata%2520in%2520HTML%2520head%26lt%3B%2Fh1%26gt%3B%26lt%3Bp%26gt%3B...%26lt%3B%2Fp%26gt%3B%26lt%3B%2Fbody%26gt%3B%26lt%3B%2Fhtml%26gt%3B%253C%2Fpre">