feat: implement user form with validation for username, age, and password

This commit is contained in:
2026-05-25 12:42:12 -03:00
parent 8000f59a2c
commit 894fbf39d3
2 changed files with 32 additions and 1 deletions

View File

@@ -8,7 +8,15 @@
</head>
<body>
<h1>Ejercicio 7</h1>
<form id="userForm">
<label for="username">Nombre de usuario:</label>
<input type="text" id="username" name="username" required>
<label for="age">Edad:</label>
<input type="number" id="age" name="age" required>
<label for="password">Contraseña:</label>
<input type="password" id="password" name="password" required>
<button type="submit">Enviar</button>
</form>
<script src="ejercicio7.js"></script>
</body>
</html>