DEV Community

Discussion on: My Vanilla JavaScript Built-In Web Elements Collection

 
raghavmisra profile image
Raghav Misra

When you inherit from a div, you use a div tag with the is attribute. So in this case Felippe is extending an HTMLDivElement to create his custom element. Hope that helped! This exactly confused me originally as well.