Menu

Select, Textarea and Buttons

Select, Textarea and Buttons

Not every form field uses an < input> tag. A dropdown menu uses <select> combined with <option> tags for each choice. A larger text box for longer messages uses <textarea> instead of <input>.

To let visitors submit the form, use a < button> tag or an < input> with type="submit".

<select>

  <option value="india">India</option>

  <option value="usa">USA</option>

</select>

 

<textarea rows="4" cols="30" placeholder="Write your message"></textarea>

 

<button type="submit">Send</button>

Explanation: The value attribute in each option is what gets sent when the form is submitted, while the text between the tags is what the visitor sees. rows and cols on a textarea control its visible size.


HTML Tutorial (From Basics to Implementation)

AP

Abhishek Pati





Get in Touch For Details