Itemscope and itemprop at same level

后端 未结 2 1937
执笔经年
执笔经年 2021-01-18 06:43

I have a link that looks like this:


             


        
2条回答
  •  日久生厌
    2021-01-18 07:16

    You can have itemprop and itemscope on the same element, but it will mean something different.

    In this example, a Product item has the url property:

    In this example, some other item has the url property, and its value is a Product item:

    
    

    (Note for the the latter case: the url value is the Product item, not the URL in the href attribute! So this probably doesn’t make sense for the url property.)

提交回复
热议问题