Creating Text Areas

If you want to give visitors room to write questions or comments, use text areas. They will expand as needed Image.

Image The value attribute is not used with the textarea element. Default values are set by adding text between the start and end tags.

<label for="bio">Bio:</label><textarea id="bio" name="bio" rows="8" cols="50" class="large"></textarea>

Image The font properties do not always inherit by default, so you must explicitly set them ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.