75 lines
1.8 KiB
HTML
75 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width">
|
|
<title>Clase 9 - Eventos</title>
|
|
<link rel="stylesheet" href="estilo.css">
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Clase 9 - Eventos</h1>
|
|
<div id="ejercicio-1">
|
|
<p> Este boton ha sido clickeado <span id="clickCounter">0</span> veces</p>
|
|
<button id="clickButton">Clickeame!</button>
|
|
</div>
|
|
<hr>
|
|
<div id="ejercicio-2">
|
|
<label for="textInput">
|
|
Esto es un campo de texto, probá escribir en él:
|
|
</label>
|
|
|
|
<input type="text" id="textInput">
|
|
|
|
<p>
|
|
Caracteres ingresados:
|
|
<span id="charCount">0</span>
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div id="ejercicio-3">
|
|
<ul id="itemList">
|
|
<li>Item 1</li>
|
|
<li>Item 2</li>
|
|
<li>Item 3</li>
|
|
<li>Item 4</li>
|
|
<li>Item 5</li>
|
|
</ul>
|
|
</div>
|
|
<hr>
|
|
<div id="ejercicio-4">
|
|
<div id="outside">
|
|
<div id="inside">
|
|
<button id="insideButton">Click</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<div id="ejercicio-5">
|
|
<form id="userForm">
|
|
|
|
<label for="nameInput">Nombre:</label>
|
|
<input type="text" id="nameInput">
|
|
<p id="nameError" class="errorMessage"></p>
|
|
|
|
<label for="ageInput">Edad:</label>
|
|
<input type="number" id="ageInput">
|
|
<p id="ageError" class="errorMessage"></p>
|
|
|
|
<label for="messageInput">Mensaje:</label>
|
|
<textarea id="messageInput"></textarea>
|
|
<p id="messageError" class="errorMessage"></p>
|
|
|
|
<button type="submit">
|
|
Enviar
|
|
</button>
|
|
|
|
<p id="successMessage"></p>
|
|
|
|
</form>
|
|
</div>
|
|
<script src="clase-9.js"></script>
|
|
</body>
|
|
|
|
</html> |