问题描述:

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.

相关阅读:
Top