clase 8 #11
@@ -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");
|
||||
}
|
||||
}
|
||||
@@ -101,6 +101,12 @@ h1 {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.item-lista {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
IMAGEN
|
||||
========================= */
|
||||
|
||||
Reference in New Issue
Block a user