Resolucion de la mitad el 5to ejercicio
This commit is contained in:
@@ -36,3 +36,21 @@ parrafos.forEach(p => {
|
|||||||
p.classList.add("destacado");
|
p.classList.add("destacado");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//ejercicio 5;
|
||||||
|
function nuevoDiv() {
|
||||||
|
const div = document.createElement("div")
|
||||||
|
const h2 = document.createElement("h2");
|
||||||
|
h2.textContent = "Comidas tipicas de la region del litoral";
|
||||||
|
div.appendChild(h2);
|
||||||
|
const p = document.createElement("p");
|
||||||
|
p.textContent = "Algunas de las comidas mas tipicas del litoral pueden ser: ";
|
||||||
|
div.appendChild(p);
|
||||||
|
const listaLitoral = document.createElement("ul");
|
||||||
|
const item1 = document.createElement("li");
|
||||||
|
item1.textContent = "Mbejú";
|
||||||
|
listaLitoral.appendChild(item1);
|
||||||
|
const item2 =
|
||||||
|
listaLitoral.textContent = ["Mbejú, Chipa guazu, Sopa paraguaya, Vori Vori"]
|
||||||
|
div.appendChild(listaLitoral);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user