Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Yurie chocolat5

🏠
Working from home
View GitHub Profile
@chocolat5
chocolat5 / custom-data-attribute.md
Created Jun 8, 2019
custom data attribute (HTML5)
View custom-data-attribute.md

HTML

<ul>
  <li id="item1" class="item" data-selected="true">item1</li>
  <li id="item2" class="item" data-selected="false">item2</li>
  <li id="item3" class="item" data-selected="false">item3</li>
</ul>
You can’t perform that action at this time.