Lovntola
Lovntola

Reputation: 1409

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?

Upvotes: 1

Views: 287

Answers (2)

Malte Ubl
Malte Ubl

Reputation: 850

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

Upvotes: 2

Mohit
Mohit

Reputation: 2249

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.

Upvotes: 1

Related Questions