Posts

Showing posts with the label form labels

review: Add Form Labels task4

  Challenge Task 4 of 4 Create a label for the email field with the text  "Email:" . <!DOCTYPE html> <html>   <head>     <meta charset="utf-8">     <title>HTML Forms</title>   </head>   <body>          <form action="index.html" method="post">       <label for="name">Name:</label>       <input type="text" id="name" name="user_name">       <label for="comment">Comment</label>       <textarea id="comment" name="user_comment"></textarea>       <label for="email">Email:</label>       <input type="email" id="email" name="user_email">       <button type="submit">Submit Comment</button>     </form>   </body> </html>

review: Add Form Labels task3

  After the name field, add another input for email addresses. Set the  type  attribute to  "email" , the  id  attribute to  "email" , and the  name  to  "user_email" . <!DOCTYPE html> <html>   <head>     <meta charset="utf-8">     <title>HTML Forms</title>   </head>   <body>          <form action="index.html" method="post">       <label for="name">Name:</label>       <input type="text" id="name" name="user_name">       <label for="comment">Comment</label>       <textarea id="comment" name="user_comment"></textarea>       <input type="email" id="email" name="user_email">       <button type="submit">Submit Comment</button>     </form>   </body> </htm...

review: Add Form Labels task1

  Create a label with a  for  attribute that matches the input element's ID. Between the label tags, write the text  "Name:" . <!DOCTYPE html> <html>   <head>     <meta charset="utf-8">     <title>HTML Forms</title>   </head>   <body>          <form action="index.html" method="post">        <label for="name">Name:</label>       <input type="text" id="name" name="user_name">       <textarea id="comment" name="user_comment"></textarea>       <button type="submit">Submit Comment</button>     </form>   </body> </html>