forked from marquez.juan/clase-8-DOM
Primer EJ terminado
This commit is contained in:
@@ -1 +1,5 @@
|
|||||||
// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios.
|
// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios.
|
||||||
|
//1
|
||||||
|
const tituloh1 = document.querySelector("h1")
|
||||||
|
console.log(tituloh1.textContent);
|
||||||
|
tituloh1.textContent = "Titulo reemplazado correctamente"
|
||||||
@@ -32,4 +32,5 @@
|
|||||||
<p>Este es otro párrafo del montón.</p>
|
<p>Este es otro párrafo del montón.</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
<script src="ejercicios-clase-8.js"></script>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user