Modifying Attributes and Classes By Chloe
let setEx = document.getElementById('imageEx');
setEx.setAttribute('src', '../images/cartoon-cat-free.png');
.red {
text-align: center;
font-size: 13px;
font-family: 'Roboto Mono', monospace;
border: 3px dashed red;
margin-bottom: 25px;
margin-left: 15px;
}
.blue {
text-align: center;
font-size: 13px;
font-family: 'Roboto Mono', monospace;
border: 3px dashed blue;
margin-bottom: 25px;
margin-left: 15px;
}
let blueEx = document.getElementById('blue');
blueEx.className="red";
.background {
background-color: aqua;
}
let backgroundEx = document.getElementById('red');
backgroundEx.classList.add('background');