2 ms·
Given that there is no end tag in Imba, that's not especially confusing—there's a one-to-one relationship between tags and elements. Also, colloquially it's ve
by lolinder 3y ago
Given that there is no end tag in Imba, that's not especially confusing—there's a one-to-one relationship between tags and elements.
Also, colloquially it's very common to use "tag" because to refer to both, because "element" is longer, including in pretty formal places like Shopify's API:
https://shopify.dev/docs/api/admin-rest/2023-07/resources/scripttag https://shopify.dev/docs/api/admin-rest/2023-07/resources/sc...
- layer8 3y ago> there's a one-to-one relationship between tags and elements. There’s not a one-to-one relationship between HTML tags and elements, so if there is a one-to-one relationship between Imba tags and HTML elements, it follows that there is not a one-to-one relationship between Imba tags and HTML tags — that’s what’s confusing.
- deleted 3y ago[deleted]
- lolinder 3y agoBy your own insistence a tag is simply a syntax construct, so I'm not sure why it matters that there's a one-to-one relationship between Imba tags and HTML tags. All that matters is that there's an obvious mapping from one to the other (and preferably back), which there is. Also, I want to re-emphasize that most people use the words "tag" and "element" interchangeably when talking about written HTML. That may be a pet peeve of yours, but it's common enough that it's not an incorrect usage.
- eddythompson80 3y agoYeah, I always called it tag because vim calls them tags.