Practical Exercise 7: Basic HTML Form
Learn how to create a basic HTML form step by step. Discover how to use tags like<form>,<input>,<label>and more, to capture user information in a clear and structured way.
Activity
Create a form with text fields, an email address, and a submit button.
Interactive Solution
Solution with complete HTML code
HTML
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<title>Formulario Básico</title>
</head>
<body>
<h1>Formulario</h1>
<form>
<label for="nombre">Nombre:</label>
<input type="text" id="nombre" name="nombre" />
<!-- <br />: Este es un salto de línea -->
<br />
<label for="email">Correo Electrónico:</label>
<input type="email" id="email" name="email" />
<br />
<button type="submit">Enviar</button>
</form>
</body>
</html>
info
🧠 Don't miss the full explanation here👉 Creating forms with HTML