1 2 3 4 | <h1 class = "title" itemprop = "name" > h2 > <div class = "postdate" > <span itemprop="datePublished" > span > <span itemprop="author" > span > </div> </code> |
Micro-tagging of pictures
The itemprop="image" attribute allows robots to quickly recognize information about pictures.
You need to insert it into the image code as follows:
1 2 3 | <img itemprop="image" class = "size-full wp-image-3279 alignleft" style = "margin: -15px 0;" src = "https://site/wp-content/uploads/2014/12/konvers2.png" alt = "conversion" height = "256" width = "300" > !} |
Comment markup
To create comment markup, you need to implement the following attributes:
itemprop="comment" itemscope="itemscope" itemtype="https://schema.org/UserComments"
itemprop="interactionCount" – number of comments
itemprop="commentTime" – creation time
itemprop="commentText" – comment text
You can implement attributes both in the code of a specific page and in the function.php file for one or another type of object.
Each file type has its own set of attributes, which you can study on the site with standards (url is given above), or using the attribute generator. For example, this schema-creator.org/ .
But there is another way to create micro-markup for a website using the schema.org standard, which is to use plugins. A popular WordPress micro-markup plugin is Schema Creator by Raven. By downloading and, you can customize and create new markup. With its help, you will have the opportunity to select the type of markup for a certain type of object, fill in the necessary fields with a description and get the finished code.
In addition, you can ask questions in the comments to the article.
Any webmaster is familiar with HTML markup. Typically, HTML tags tell the browser how to display the information enclosed within the tag. For example, tag
Avatar
means that the "Avatar" string should be displayed in the first level heading format. However, the HTML tag doesn't provide any information about the meaning of the string: "Avatar" could refer to a wildly successful 3D movie or a user profile picture. This makes it difficult for search engines to find information that matches the user's query.Schema.org provides a publicly accessible dictionary that allows webmasters to mark up pages so that they are understandable to the most common search engines: Yandex, Google, Microsoft and Yahoo!.
itemprop="name">Avatar
Director: itemprop="director">James Cameron(born August 16, 1954) itemprop="genre">Fantastic itemprop="trailer">TrailerNote that we've added an extra ... tag to bind the itemprop attribute to the corresponding text on the page. Tag does not affect the display of the page in the browser, so it is convenient to use in conjunction with itemprop .
Now search engines will be able to understand not only that http://www.avatarmovie.com is a link, but also that it is a link to the trailer for the science-fiction film “Avatar” directed by James Cameron.
Nested Entities
Sometimes a property value can be an entity itself, with its own set of properties. For example, a movie director can be described as an entity of type Person that has the properties name and birthDate. To indicate that a property value represents an entity, you must add the itemscope attribute immediately after the corresponding itemprop .
Avatar
Schema.org Types and Properties
In addition to the Movie and Person types mentioned in the section, schema.org describes many different entity types, each of which has a defined set of properties.
The most general type of entity is a Thing, which has four properties: name, description, url and image. More specialized, private types share properties with more universal ones. For example, Place is a special case of Thing, and LocalBusiness is a special case of Place. Private types inherit the properties of their parent type. (Moreover, the LocalBusiness type is both a special case of Place and a special case of Organization, so it inherits the properties of both parent types.)
Here is a list of some popular entity types:
Additionally: machine-readable version of the information
Many pages can be marked up using only the itemscope , itemtype , and itemprop attributes (described in How to Markup Content Using Microdata) together with schema.org types and properties (described in How to Use the Schema.org Dictionary).
However, in some cases it is difficult for a robot to unambiguously interpret a property of an entity. This section describes how to add a machine-readable version of information to your page markup.
Dates, times and durations: use tag
Robots are not always able to correctly understand the date and time. For example, "01/04/11" is January 11, 2004, January 4, 2011, or April 1, 2011? To uniquely set the date, use the tag
04/01/11The time of day is specified in the format hh:mm or hh:mm:ss, with the prefix T. The time may be indicated along with the date:
May 8, 19:30Let's look at the example in context: HTML code with information about a concert that will take place on May 8, 2011. Event type markup includes the event name, description and date.
Duration is described in a similar way, using the tag
H stands for the number of hours and M stands for the number of minutes.
Date, time and duration formats follow the ISO 8601 standard.
Listings and links to canonical pages: use the link tag with the href attribute
Transfers
Some properties have a limited set of possible values. Programmers call them enumerations. For example, an online store can use the Offer entity type to provide a detailed description of a product offering. The availability property usually has one of several possible values: In stock, Out of stock, Pre-order, etc. Enumerated property values can be specified as URLs, similar to types schema.org entities.
Here is a product offer, marked as an entity of type Offer, with the corresponding properties:
And here is the same sentence, marked up using and href , which allows you to uniquely specify one of the valid values for the availability property:
Schema.org provides a list of possible values for a small number of properties - in cases where the property has a limited set of typical values. Thus, the possible values for the availability property are listed in ItemAvailability .
As you can see, the itemprop="url" attribute can be used to link to a page on another site (in this case, Wikipedia) that describes the same entity. Linking to third-party sites helps search engines better understand what your page is about.
Missing or implicit information: use a tag with content attribute
Sometimes important information cannot be marked up due to the way it is displayed on the page. For example, the information is presented in a picture (image of a 4 out of 5 star rating) or in a Flash object (for example, the length of a video), or it is implied but not explicitly stated on the page (for example, the currency of the price).
In such cases, you can use the tag with the content attribute. The following example picture illustrates a rating of 4 stars out of 5:
![](https://i2.wp.com/four-stars.jpg)
And here is the same example with marked rating information.
![](https://i2.wp.com/four-stars.jpg)
This technique should not be overused. Use tag with the content attribute only for information that cannot be marked in any other way.
schema.org extension
Most sites and organizations will not need to extend schema.org. However, schema.org does provide the ability to add properties and child types to existing entity types. If you are interested in this, check out