Challenge: Create Form with Inputs and Labels
Goal
Elevate the website's user experience by creating an interactive form that requires inputs for name, email, and password, complete with associated labels.
Task
Incorporate a user-friendly form into your website, enhancing user engagement and interaction. Your task is to:
- For the name input: create a text input that collects users' names. Utilize the correct attributes to ensure a seamless experience.
- Define the appropriate
type
for the text input; - Set the
placeholder
toJohn
; - Ensure the input is focused by default.
- Define the appropriate
- For the email input: establish an email input that collects users' email addresses. Ensure data accuracy by utilizing the appropriate attributes.
- Define the correct
type
for the email input; - Set the
placeholder
toexample@gmail.com
; - Mark the field as required.
- Define the correct
- For the password input: create a secure password input that keeps user data safe. Utilize the appropriate attributes to enhance data protection.
- Define the correct
type
for the password input; - Make the field required.
- Define the correct
index.html
index.css
Thanks for your feedback!