Go back to the article

classList API

Live sample element

<span id="play-element" class="description"></span>

Play area

Log

Demo created by Aurelio De Rosa (@AurelioDeRosa).
This demo is part of the HTML5 API demos repository.