forked from marquez.juan/clase-8-DOM
Ejercicio 5
This commit is contained in:
@@ -40,3 +40,34 @@ if(contenedor){
|
||||
parrafo.classList.add("destacado");
|
||||
});
|
||||
}
|
||||
|
||||
//ejercicio 5
|
||||
|
||||
function comidaLitoral(){
|
||||
const nuevoDiv = document.querySelector("div");
|
||||
|
||||
const nuevoH2 = document.createElement("h2");
|
||||
nuevoH2.textContent = "Comidas del Litoral argentino: ";
|
||||
nuevoDiv.appendChild(nuevoH2);
|
||||
|
||||
const nuevoUl = document.createElement("ul");
|
||||
nuevoH2.appendChild(nuevoUl);
|
||||
|
||||
const nuevoLi = document.createElement("li");
|
||||
nuevoLi.textContent = "Chupin de pescado";
|
||||
nuevoUl.appendChild(nuevoLi);
|
||||
|
||||
const nuevoLi2 = document.createElement("li");
|
||||
nuevoLi2.textContent = "Guiso Carrero";
|
||||
nuevoUl.appendChild(nuevoLi2);
|
||||
|
||||
const nuevoLi3 = document.createElement("li");
|
||||
nuevoLi3.textContent = "Mbeyú"
|
||||
nuevoUl.appendChild(nuevoLi3);
|
||||
|
||||
const nuevoLi4 = document.createElement("li");
|
||||
nuevoLi4.textContent = "Pescado a la parrilla"
|
||||
nuevoUl.appendChild(nuevoLi4);
|
||||
}
|
||||
|
||||
//ejercicio 6
|
||||
Reference in New Issue
Block a user