DEV Community

Cover image for Your first Web Component (without JavaScript)
Danny Engelman
Danny Engelman

Posted on

Your first Web Component (without JavaScript)

Change your CSS grid definition:

oldskool DIV soup

to:

modern (non-javascript) Web Components

and you are done writing your first Custom Element/Web Component

No more hunting for that closing </div>

YES! any tagname with a (-) dash in the name is a valid HTMLElement

Also see: https://dev.to/dannyengelman/not-a-div-insidein-sightsite-18lj

Top comments (0)