classname.css code example
Example 1: element.classname javascript
let el = document.getElementById('item');
if (el.className === 'active'){
el.className = 'inactive';
} else {
el.className = 'active';
}
Example 2: css calss
.ThisIsAClassName{
font-family: sans-serif;
}