COMMENT DIALOGUE BOX , SUBMIT AND RESET BUTTON

<TEXTAREA>

The <TEXTAREA> tag creates a field in which a user can enter a large amount of text.The <TEXTAREA>tag has the following attributes.

  • rows
  • cols
rows

The rows attribute helps to set the number of rows of text that will be visible without scrolling up or down in the field.

cols
The rows attribute helps to set the number of columns of text that will be visible without scrolling right or left in the field.

Consider the following code to create a text area in a form:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-9961622779713084",
    enable_page_level_ads: true
  });
</script>
.....</TR>
<TR>
<TD ><LABEL for="Orderfor">ADDRESS</LABEL></TD>
<TD><TEXTAREA  rows="3" cols="16" ID="Orderfor">

Enter Your Address Here
</TEXTAREA></TD>
</TR></TABLE>
</FORM>                                                   
</BODY>                                                                 
</HTML>

Result:



Consider the following code create two buttons Submit and Reset:

<!DOCTYPE HTML>
<HTML>
<HEAD>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-9961622779713084",
    enable_page_level_ads: true
  });
</script>
<STYLE>
#button{
margin-left: 50px;
}
</HEAD>
BODY
....</TR>
<TR>
<TD>
<BUTTON ID="button" TYPE="Submit"<P>SUBMIT</P></BUTTON></TD><TD>
<BUTTON type="Reset"><P>Reset</P></BUTTON>
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>

Result:









About Codingwelove

Codingwelove
Recommended Posts × +

0 comments:

Post a Comment