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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
So it does lead to the writing last code? Less than if you were to create a class that inherits from div?
When you inherit from a
div
, you use adiv
tag with theis
attribute. So in this case Felippe is extending anHTMLDivElement
to create his custom element. Hope that helped! This exactly confused me originally as well.