this post was submitted on 15 Jul 2023
11 points (100.0% liked)

HTML

314 readers
1 users here now

founded 2 years ago
MODERATORS
11
submitted 1 year ago* (last edited 1 year ago) by LNSY to c/html
 

This is my favorite new feature in HTML. It allows us to define custom HTML elements as classes and talk to them using attributes.

top 1 comments
sorted by: hot top controversial new old
[–] LNSY 2 points 1 year ago

https://gist.github.com/lindseyjohnasterius/96e696d780b74a2d800163760bc6293d

Here is my Gist explaining how I do it, but the javascript.info article is newer and better