Select input form

 <!DOCTYPE html>

<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Select</title>
  </head>
  <body>
    <form action="/server">
      <div>
        <select name="profession" id="profession">
          <option value="student">student</option>
          <option value="developer">dev</option>
        </select>
        <button>submit</button>


      </div>
      <!-- USING SELECTED ATTRIBUTE -->
      <select name="fruit" id="fruit">
        <option value="mango" selected>mango</option>
        <option value="orange">orange</option>
      </select>
      <button>submit</button>
    </form>
  </body>
</html>

Comments

Popular posts from this blog

TextArea

unordered list with image link