HTML | Tags and Attributes [FORM] [Text Area]




Ü how to create text area?
            Text areas are areas where user can write a large amount of text (depend on the coding). Actually in web sites, text areas are use to take comment or feedback from the viewers. To create text areas consider the following code,
          <TEXTAREA NAME=”.....” ROWS=”......” COLS=”.......”>-----</TEXTAREA>
            That is, to create text area we will
use <TEXTAREA>........</TEXTAREA> tags. Here, we can use any thing as the value of the NAME attribute. The value of ROWS attribute defines the height of the text area and the value of the COLS attribute defines the width of the text area.
            What we will write in between the <TEXTAREA>------</TEXTAREA> tags will appear initially in the text area. We can write anything or left this area empty. Now simply try to understand the following codes and the output.
Input :
<HTML><HEAD><TITLE> FORM </TITLE>
</HEAD>
<BODY>
<FORM>
Please give your comment.<BR>
<TEXTAREA NAME=”COMMENT” ROWS=8 COLS=50> Write here... </TEXTAREA> <BR> <BR> </FORM>
</BODY>
</HTML>
Output:



Recommended Recommends

Comments

Contact Us

Loading...