codegurukool.com · Free coding tutorials & online compiler

Home › HTML Tutorial › Form elements

Form elements

Beyond input.

Use select, datalist, textarea, fieldset with legend, and output to build full forms.

Example code

<fieldset><legend>Profile</legend>
<input list='l' placeholder='Pick a language'>
<datalist id='l'><option>HTML</option><option>CSS</option></datalist><br>
<textarea rows='3' cols='24'>Bio</textarea>
</fieldset>'

Run this code in the online editor

← Form attributesHTML canvas →