🤠 div.js 🤠

HTML, the web’s most popular programming language, is bloated.

As of 2021, there are at least 10 HTML elements. Why? Why waste time use semantic when div do trick?

Div.js revolutionizes the web, meeting developers where they are at by focusing on their favorite element: <div>

Captain Crunch Oops All Berries cereal box meme, with a HTML div element instead of the word "berries".

Usage

Simply add the is attribute to your divs to imbue them with free functionality, semantics, and accessibility.

<div is="h1">Hello world!</div>
<div is="p">This is a <div is="b">bold</div> paragraph.</div>
<div is="ol">
  <div is="li">This is a list item.</div>
  <div is="li">This is a list item.</div>
  <div is="li">This is a list item.</div>
</div>

Div.js supports many handcrafted default element types. Find a full list here.

Testimonials

Twitter dialogue. @wonkingclass: I've been waiting for this. @will_martian: Thought so. Mind if I use this testimonial in marketing materials? @wonkingclass: Only if you credit me

GitHub

View Github