Except you have to use <amp-img> tags instead of <img>. Same for video, audio, and iframe.
https://www.ampproject.org/docs/reference/spec#html-tags
Re:On AMP for Email
by magicalist on Saturday February 17, 2018 @02:15PM
(#16402193)
> Except you have to use <amp-img> tags instead of <img>
Those are just custom elements: https://html.spec.whatwg.org/multipage/custom-elements.html
Hmm, custom elements are an interesting loophole. If you define your own set of tags and provide JavaScript implementations for them, I guess it would run in a browser, but is it really the same language anymore, and does it matter?
I'm reminded of:
#define BEGIN {
#define END }
Re:On AMP for Email
by magicalist on Saturday February 17, 2018 @06:39PM
(#16403478)
> is it really the same language anymore
Yes?
The analogy would be more like defining custom functions or classes not in the standard library. It's just encapsulation that can then be used by name. They can't be inserted arbitrarily regardless of syntax like a macro can be.
It is just a subset of HTML (as is amp). Most email providers that accept HTML formats already only accept a subset of HTML. This is just a different, more formally defined, subset.
I mean, HTML is just XML... these subsets are in many ways their own language.
HTML is an application of SGML / ISO8879. It defines its own domain and that's the scope of it. It's a leaf.
XML is a subset of SGML and can have further subsets and implementing applications I.e. it is a branch. As noted above, XHTML was a leaf on this branch.
So they are related but not equivalent.
Re:On AMP for Email
by seabrookmx on Saturday February 17, 2018 @02:58PM
(#16402411)
It's not, technically.
XHTML was a formally defined HTML subset of XML but it died.
Is this correct? Looking at the example in the spec [1], it seems to be a subset of HTML.
[1] https://github.com/ampproject/amphtml/issues/13457