hreflang 属性可以用于视频吗?
Can the hreflang attribute be used with videos?
是否可以使用 hreflang 属性来定义链接视频的语言?或者它应该只在链接到包含文本的文档时使用?
<a href="video.mp4" hreflang="en" type="video/mp4" download>Download Video</a>
Google yahoo and bing?
是的,所有这些。一个人真的应该为人和好的内容编码。但无论如何,让我给出一个答案。是的,它可以使用,规范说它适用于链接 - a
和 area
包括在内。除此之外,它在 HTML5 中有效(video
需要)。
user agents must use only language information associated with the resource to determine its language, not metadata included in the link to the resource.
是否可以使用 hreflang 属性来定义链接视频的语言?或者它应该只在链接到包含文本的文档时使用?
<a href="video.mp4" hreflang="en" type="video/mp4" download>Download Video</a>
Google yahoo and bing?
是的,所有这些。一个人真的应该为人和好的内容编码。但无论如何,让我给出一个答案。是的,它可以使用,规范说它适用于链接 - a
和 area
包括在内。除此之外,它在 HTML5 中有效(video
需要)。
user agents must use only language information associated with the resource to determine its language, not metadata included in the link to the resource.