review: Add fieldsets and legends task4

Add another legend element to the second fieldset and give it the text "What's on your mind?"


<!DOCTYPE html>

<html>

  <head>

    <meta charset="utf-8">

    <title>HTML Forms</title>

  </head>

  <body>

    

    <form action="index.html" method="post">

      

        <fieldset>

          <legend>Tell us about yourself.</legend>

          <label for="name">Name:</label>

          <input type="text" id="name" name="user_name">

          <label for="email">Email:</label>

          <input type="email" id="email" name="user_email">

        </fieldset>

      

      

      <fieldset>

        <legend>What's on your mind?</legend>

        <label for="comment">Comment:</label>

        <textarea id="comment" name="user_comment"></textarea>

      </fieldset>

      

      <button type="submit">Submit Comment</button>

    </form>


  </body>

</html>

Comments

Popular posts from this blog

how to code a weather forecast web

What Build Tools Do JavaScript Developers Use?

WordPress Theme Development From Scratch - 3. Enqueuing CSS and JS to W...

how to use :focus

unit3.online registration form tricks: input field box align right and placeholder text right, but input text left.

how to screenshot a drop down menu on mac

Numbers in JavaScript introduction