forked from marquez.juan/clase-10-ejercicios-de-repaso
feat: add a greeting button with validation
This commit is contained in:
@@ -8,7 +8,10 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>Ejercicio 1</h1>
|
||||
|
||||
<label for="name">Nombre:</label>
|
||||
<input type="text" id="name" name="name">
|
||||
<button id="greet">Saludar</button>
|
||||
<p id="greeting"></p>
|
||||
<script src="ejercicio1.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user