I read all about these hot new custom HTML elements you can do with today's browsers; Honestly, it looks pretty interesting. However, I saw that the camp is on it; There is a lot of debate about whether to use them or not.
But this is not my question!
I saw that in order to use custom HTML elements you need to first declare the element with javascript; but I don’t think so.
I just ran an HTML document with the following code:
<div>
<header-label>Text</header-label>
</div>
And this works great in Chrome ( 40
), FireFox ( 40
), Internet Explorer 11, and Edge.
So, I am more confused than before; What's happening? Do I need to declare them or not? Even against it worked CSS
, like the jQuery selector, angular directives; I could not find anything that would make me believe that it was something like a regular HTML element.
source
share