HTML "self-awareness" with sibling indexing in JavaScript

from blog Cassidy Williams, | ↗ original
↗ original
Make your HTML more "self-aware" with a fun little trick to get its own index.