当前位置: 动力学知识库 > 问答 > 编程问答 >

amp html - Using XHTML format for AMP tags

问题描述:

Can i use the xhtml <amp-img /> instead of <amp-img></amp-img>.

I see it works but is it supported?

网友答案:

You cannot use the XHTML-form. That has nothing to do with AMP. XHTML self-closing tags are not supported in AMP.

网友答案:

Yes its supported. To confirm it yourself, you can add #development at the end of the url and check browser console. it will display any amp validation error.

分享给朋友:
您可能感兴趣的文章:
随机阅读: