These elements are used , when we want our user to wright a longer text.It allows us to define the number of lines and rows.The tag that we will employ is:<textarea></textarea>.
To define the length and width of our text area, we will use the following two attributes:
cols:Defines the number of columns.
rows:Defines the number of rows.
As the text fields in the previous post, this tag also posesses the name and id attributes.What we can not use for text areas is value, but we can add our text by typing it in between the <textarea> and </textarea> tags.
<html>
<head>
</head>
<body>
<textarea cols="30" rows="6" name="Example" id="Example">
Here goes our text
</textarea>
</body>
</html>
No comments:
Post a Comment