Complete the code to create a text input field for a user's name.
<label for="name">Name:</label> <input id="name" type="[1]" name="name">
The type="text" creates a simple text input field for general text like a name.
Complete the code to create an input field that only accepts email addresses.
<label for="user-email">Email:</label> <input id="user-email" type="[1]" name="email">
The type="email" input helps browsers check if the entered text looks like an email address.
Fix the error in the code to create a password input field that hides the typed characters.
<label for="pass">Password:</label> <input id="pass" type="[1]" name="password">
The type="password" input hides the characters typed, showing dots or stars instead.
Fill both blanks to create a number input field with a minimum value of 1.
<label for="age">Age:</label> <input id="age" type="[1]" name="age" min="[2]">
The type="number" input allows only numbers. The min attribute sets the smallest allowed number, here 1.
Fill all three blanks to create an email input with a placeholder and required attribute.
<label for="contact">Contact Email:</label> <input id="contact" type="[1]" name="contact" placeholder="[2]" [3]>
The type="email" input checks for email format. The placeholder shows a hint inside the box. The required attribute makes sure the user cannot leave it empty.