Tsallaka zuwa abun ciki
Justice Tech School

Textarea and Datalist

textarea holds several lines of text with rows and cols. datalist suggests values while still allowing free typing.

Example
<textarea rows="3" cols="30" placeholder="Your message"></textarea><br>
<input list="langs" placeholder="Pick a language">
<datalist id="langs"><option value="HTML"><option value="CSS"><option value="JavaScript"></datalist>

Exercise

Set visible lines.

<textarea ="4"></textarea>

Quiz Test

What does datalist provide?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.