From the course: HTML Essential Training

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Additional form elements

Additional form elements

- [Instructor] Now that we've explored the many ways to use the input element, let's look at a couple more options, text area and select. The text area element is used for multi-line text and allows for larger blocks of freeform user inputs, like comments, reviews, or feedback. It only accepts one input type, so the type attribute is not required. A name attribute should be included to reference the data when the form is submitted. The calls attribute can be used to set the width using a number based on the average width of text characters. The rows attribute determines the number of visible text rows. You can use these attributes, but they're not required since CSS is typically used for more precise control over the size of the text area. Dropdown controls are another way for users to select from several options without taking up too much space in the form layout. The select element is used to create a list of choices, while the option element is used to add each item in the list…

Contents