clase 8 #11

Open
alarcon.blas wants to merge 8 commits from alarcon.blas/clase-8-DOM:blas-alarcon into main
2 changed files with 14 additions and 0 deletions
Showing only changes of commit 353406174d - Show all commits

View File

@@ -2,4 +2,12 @@
function cambiarTitulo() {
const titulo = document.querySelector("h1");
titulo.textContent = "Agua";
}
function agregarClaseItems() {
const items = document.querySelectorAll("li");
for (const item of items) {
item.classList.add("item-lista");
}
}

View File

@@ -101,6 +101,12 @@ h1 {
font-weight: bold;
}
.item-lista {
color: red;
font-weight: bold;
background-color: yellow;
}
/* =========================
IMAGEN
========================= */