Comment: HTML5 microdata specification is a way to mark content and is used to describe specific types of information, such as comments, person information, or activities. Microdata uses simple attributes in HTML tags (often span> or div) to specify brief descriptive names for items and attributes
It has been almost a month since I was doing website optimization, and I have also gained some understanding of the general technology of SEO. A few days ago, I started using Google's webmaster tool and found a lot of content that was not found in Baidu's webmaster tool. Among them, structured data appears in the optimization column. It can be imagined that this structured data is a way to optimize Google search? I added my own website to enter this page and found that it prompted that no structured data was detected on my website, but how do we understand such a word that lacks concepts?Entering Google's help page, Google mentioned enriching web page summary (microdata, microformat, RDFa and data highlighter), where microdata is the optimization method recommended by Google. This microdata is the new feature added by the newcomer HTML5 to enhance web semantics. It aims to build a data-driven web that is more valuable to programs and users.
HTML5 microdata specification is a way to mark content and is used to describe specific types of information, such as comments, person information, or activities. Each information describes a specific type of item, such as a person, activity, or comment. For example, an activity can contain venue, starting time, name, and category properties.
Microdata specifies a brief descriptive name for items and attributes using simple properties in HTML tags (often <span> or <div>). The following example is a short HTML text block showing the basic contact information of Bob Smith.
<div>
My name is Wang XX, but everyone calls me wungking. My homepage is:
<a href="http://www.vevb.com"></a>
I live in Wuhan. I am a programmer and currently work at Fifth Power.
</div>
The following is the same HTML content marked with microdata.
<div itemscope itemtype="http://data-vocabulary.org/Person">
My name is <span itemprop="name">Wang XX</span>
But everyone calls me <span itemprop="nickname">wungking</span>.
My homepage is:
<a href="http://www.vevb.com" itemprop="url"></a>
I live in Wuhan. I am a <span itemprop="title">programmer</span>
Currently working at <span itemprop="affiliation">Fifth Power</span>.
</div>
This example is explained in detail below.
1. In the first line, itemscope means that the content in <div> is an item. itemtype= means that the item is a character.
2. Each attribute of the character item is identified using the itemprop attribute. For example, itemprop=name describes the name of the character.
A simple usage is introduced. Let’s take a look at the effect. Because this marker will not have any different effects on the web page (for users), so here we need to paste the effect of Google Test Tools:
This is the result of the structured data test of my homepage. The image title after the item below is added to the corresponding elements in the page. When Google crawls your page, it uses this structured tag to quickly obtain the most effective information. As for whether it has any effect on website rankings, it is not possible to test it yet, so I can only optimize it first to see the effect.
After seeing this, do you webmasters really want to optimize your website? Because there is no official tag set when defining the type of itemprop. Only some attribute values of some industries are provided, so let’s wait for it to be improved here!