Skip to content
UPEEC

Data Attributes

Custom `data-*` attributes store extra information for scripts and CSS.

Easy
Comments 0

<li data-pin="13" data-mode="output">LED</li> → el.dataset.pin in JavaScript; [data-mode="output"] in CSS.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.