Usually, when I create a custom element, I wrap it in section or another appropriate HTML element and style, but this makes the DOM look like custom-element > section .
My question is: is it wrong to delete section and just treat custom-element as root element and style that?
For example, I have a custom element called tabs , right now when it used the DOM, it looks like tabs > div.tabs , but I would prefer to remove the div.tabs element if nothing happened to it.
So my question is, is it βwrongβ to style my custom elements and treat them like any other HTML element, or should I completely ignore my custom elements (although this is hard to do when you use > and other selectors)?
source share