This article was writt by Anthony Ricaud, French OpenWeb enthusiast. Why you need classList A dynamic web application usually needs visual feedback from its inner mechanism or needs to display different visual elements based on users’ actions. To change the user interface easily, you can add/remove/edit elements through the DOM API (document.createElement, div.removeChild, elt.style.color, …) but