HTML and CSS Reference
In-Depth Information
Figure 10.7 iOS7 controls for an <input> element with a type attribute value of
tel
Textarea
Another element that's used to capture text-based data is the <textarea> element. The
<textarea> element differs from the <input> element in that it can accept larger pas-
sages of text spanning multiple lines. The <textarea> element also has start and end
tags that can wrap plain text. Because the <textarea> element only accepts one type of
value, the type attribute doesn't apply here, but the name attribute is still used (see Fig-
ure 10.8 ) .
Click here to view code image
1. <textarea name="comment">Add your comment here</textarea>
Figure 10.8 An example of a <textarea> element
Search WWH ::




Custom Search