VOOZH about

URL: https://www.geeksforgeeks.org/html/html-select-form-attribute/

⇱ HTML <select> form Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <select> form Attribute

Last Updated : 26 May, 2026

The form attribute is used to associate a <select> element with a specific form. It allows the dropdown menu to be connected to a form even if it is placed outside the <form> tag.

  • Links the <select> element to a form using the form’s id.
  • Allows dropdown elements to exist outside the <form> element.
  • Helps in creating flexible and organized form layouts.

Syntax:

<select form="form_id">

Attribute Values: The form attribute contains a value called form_id, which specifies the id of the <form> element the <select> belongs to.

Example: <select> element with the form attribute specifying the form it belongs to, allowing course selection.

Comment
Article Tags: