feat/excersices #6

Open
saucedo.facundo wants to merge 8 commits from saucedo.facundo/clase-8-DOM:feat/excersices into main
2 changed files with 17 additions and 0 deletions
Showing only changes of commit 502b762b99 - Show all commits

View File

@@ -5,4 +5,13 @@
const changeTittle = (a) => {
const tittle = document.querySelector('h1');
tittle.textContent = a;
}
// Ejercicio 2
const addClass = (a) => {
const list = document.querySelectorAll('li');
list.forEach((item) => {
item.classList.add(a);
});
}

View File

@@ -101,6 +101,14 @@ h1 {
font-weight: bold;
}
/* Clase item-lista */
.item-lista {
background: #fff4d6;
border-color: #f4b400;
color: #7a5200;
font-weight: bold;
}
/* =========================
IMAGEN
========================= */