Select, Textarea and Buttons
select creates a dropdown from option elements. textarea accepts several lines of text and uses rows and cols for its size. A button of type submit sends the form, reset clears it and button does nothing by itself.
Example
<form>
<label for="c">Country</label>
<select id="c" name="country">
<option>Nigeria</option>
<option>Ghana</option>
<option>Kenya</option>
</select>
<p><label for="m">Message</label><br><textarea id="m" rows="3" cols="30"></textarea></p>
<button type="submit">Send</button> <button type="reset">Clear</button>
</form>Exercise
Add a dropdown choice.
<select> <>Lagos</> </select>
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.