HTML Drop Down List


  • Select tag
    This tag defines a drop down list to select chices
    Syntax:
    <select>
          <option>Choice 1</option>
          <option>Choice 2 </option>
    </select>
    • Option tag uses to define the choices of the list. This should be within the select tag.

      Ex:

      Code:
      <form>
        
      Designation:
      <select>
             <option>Mr. </option>
             <option>Mrs. </option>
             <option>Ms. </option>
             <option>Dr. </option>
             <option>Rev. </option>
             <option>Prof. </option>       <option>Other. </option></select>


      Output :
      Designation:

No comments:

Post a Comment