amp 页面的顶级 html 中不允许使用前缀

prefix not allowed in top level html for amp pages

在 html amp 页面中放置 ogp.me 的前缀并验证时,我收到错误消息前缀不允许在顶级 html。解决方法是什么?

基于文档:AMP HTML Tag Addendum

AMP HTML allows for most HTML5 standard tags and a few additional tags specific to the AMP runtime. The AMP Spec broadly defines the set of tags that are disallowed. AMP Validator implementations, however, must be implemented using a tag whitelist. This addendum lists the set of tags which an AMP Validator should whitelist.

If an HTML tag is not in this list, the AMP Validator does not consider that tag valid in any context. However, many of these tags have additional restrictions. For example <script> is in the list, but custom javascript is not allowed.

唯一的解决方案是删除使 AMP 页面无效的前缀。