schema.org: SiteNavigationElement with multiple elements

后端 未结 1 1236
生来不讨喜
生来不讨喜 2020-12-21 13:24

I am trying to implement schema.org microdata for my menu navigation. This navigation will look similar to this:

&         


        
相关标签:
1条回答
  • 2020-12-21 14:19

    This is my original menu structure I came up with after reading all answers in the duplicate link

    Except my answer, it seems ;-) As I explained in my answer to the possibly duplicate question, the url property should not be used for each navigation link. Instead, the url property should provide a URL for the whole navigation (which, typically, doesn’t exist).

    The same goes for every other SiteNavigationElement property (as of Schema.org version 2.2), like name in your example: it’s for the name of the navigation (e.g., "Navigation"), not for the names of the navigation entries.

    So using the SiteNavigationElement does not seem to be very useful. The same is the case with WebPageElement and its other sub-types. They may be useful in special cases and in non-HTML contexts, but generally I wouldn’t use them for typical Web pages.

    0 讨论(0)
提交回复
热议问题