+ 2
Should I make my habit of using custom tags in html?
Its really easy to write these tags but is it acceptable like for testers?
5 Respostas
+ 11
As mentioned by @Calvin it's quite common to have custom tag when working with JS framework like Angular & React to define different behaviour.
Besides that I don't think we ever need it in normal web development. In the end, a tag is just a piece of markup in the document. 😉
+ 7
I can not understand the benefits of using it, but anyway it serves primarily to extend the html's vocabulary. I've seen some guys using JS to create custom tags in html, but I think only with html it's possible to create. Take a look at this site:
https://www.polymer-project.org/
+ 4
From what I seen, it is just <div id=name> turned into <name>. It could make CSS and JS simpler because you could group subsets of div's in a custom using tag, class, and id syntax for the subset to customize as needed. If there were 30 divs, each might need id, class, and tag level CSS. If you organized that into 6 customs, you might get way with just tag level CSS for some.
+ 4
Use custom tag with react.js components, to extends the tag functionalities.
+ 2
There doesn't appear any detractors in stack over discussions at the moment. Doesn't mean issues won't appear once tons of usage gets out there in live sites.