How do we add a class to a given element?
a element that already has a class:
Add a space plus the name of your new class to the
className property of the element. First, put an
id on the element so you can easily get a reference.
use element.classList.add method.
target element "d" however you wish and then:
This is shorthand for the following..