Validation error: “The itemprop attribute was specified, but the element is not a property of any item”

后端 未结 2 1201
我在风中等你
我在风中等你 2021-02-05 05:31

For better SEO I need put some meta on my page like this:




        
相关标签:
2条回答
  • 2021-02-05 05:57

    You should explicitly provide a type these properties (name, description, image) belong to.

    In Schema.org, everything is a Thing. Thing has many child types, listed under "More specific Types". Start there and choose the most specific type for your content.

    For example: WebPage, Article or maybe BlogPosting.

    It could look like (using WebPage as example here):

    <html itemscope itemtype="http://schema.org/WebPage">
    
    0 讨论(0)
  • 2021-02-05 05:59

    If you use itemprop meta tag in header for your site title, description and so on.

    only just add itemscope itemtype="http://schema.org/WebPage" in your html tag.

    finally:

    <html itemscope itemtype="http://schema.org/WebPage">
    
    0 讨论(0)
提交回复
热议问题