• HTML Select and TextArea

    Select Tag

    Select tag is an element that contains multiple options that can be choose from. It is the drop down box of  the web page. The item should be inside the <option> tag and all option tag should be inside the <select> tag.

    <select>
       <option value="item1">Item 1</option>
       <option value="item2">Item 2</option>
       <option value="item3">Item 3</option>
       <option value="item4">Item 4</option>
       <option value="item5">Item 5</option>
    </select>
    Output

    TextArea

    Unlike in input type text, a text area can have more than 1 row. The rows and cols attribute determines how many rows and columns will the textarea initially have.

    <textarea rows="4" cols="50">
    Learn how to create websites at JavaPointers.com. Complete tutorials from 
    client to server side programming.
    </textarea>
    Output

    Related Post