Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Overview of microdata in HTML5 and how it is used in search engines

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article shows you an overview of microdata in HTML5 and how it is used in search engines. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Do site optimization for almost a month, for the general technology of seo also have some understanding, a few days ago began to use Google webmaster tool, found a lot of Baidu webmaster tool inside the content, of which "structured data" is appeared in the "optimization" column, it is conceivable that this structured data will not be an optimization method for Google search? Add your own site to this page and find that it prompts me that no structured data has been detected on my site, but how do we novice website optimizers understand such a word that lacks concept?

On Google's help page, Google mentions "rich web summaries (microdata, microformats, RDFa and data stylus)", in which microdata is the optimization recommended by Google, and this microdata is now a new feature added by rookie HTML5 to enhance the semantics of web pages, aimed at building a data-driven web that is more valuable to programs and users.

The HTML5 microdata specification is a way of tagging content to describe specific types of information, such as comments, people, or activities. Each type of 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 attributes.

Microdata uses simple attributes in HTML tags (often or) to specify brief descriptive names for items and attributes. The following example is a short block of HTML text that shows the basic contact information of Bob Smith.

The code is as follows:

My name is XX Wang, but people call me wungking. My home page is:

Www.yisu.com

I live in Wuhan. I am a programmer, currently working in the fifth power.

The following is the same HTML content marked with microdata.

The code is as follows:

My name is Wang XX.

But people call me wungking.

My home page is:

Www.yisu.com

I live in Wuhan. I'm a programmer.

At present, I work in the fifth dynamic.

This example is described in detail below.

1. In the first line, the content in the itemscope representation is an item. The "itemtype=" http://data-vocabulary.org/Person indicates that the item is a person.

2. Each property of a person item is identified by the itemprop attribute. For example, itemprop= "name" describes the name of a person.

A simple usage introduction, take a look at the effect, because this tag will not have any different effect on the web page (for users), so here is to paste the effect of the Google test tool:

This is the result of the structured data test on my home page. 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 get the most effective information. As for whether it has any effect on website ranking, it can not be tested yet, so we can only optimize it first to see the effect.

See here, do you want to optimize your station very much? Because there is no official tag set when defining the type of itemprop. Only part of the attribute values of some industries are provided, so here we'd better wait for it to be improved.

The above is an overview of microdata in HTML5 and how it is used in search engines. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report