FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WHAT IS WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which is correct code for textarea?
A
<input type="textarea” rows="4” cols="50 “> This tag is supported in all major browsers.hi ____ i am text area control ____ you can write here in multiple line ____ but remember do not exceed the limit </textarea>
B
<textarea rows="4” cols="50 “> This tag is supported in all major browsers.hi ____ i am text area control ____ you can write here in multiple line ____ but remember do not exceed the limit </textarea>
C
<input rows="4” cols="50 “> This tag is supported in all major browsers.hi ____ i am text area control ____ you can write here in multiple line ____ but remember do not exceed the limit </input>
D
<input ____ type="textarea” rows="4” cols="50 “>
Explanation: 

Detailed explanation-1: -A textarea is created with the HTML <textarea> tag. The textarea can be nested inside a <form> element or it can stand alone. It can also be associated with a form via its form attribute.

Detailed explanation-2: -The maxlength attribute defines the maximum number of characters (as UTF-16 code units) the user can enter into an <input> or <textarea> . This must be an integer value 0 or higher. If no maxlength is specified, or an invalid value is specified, the input or textarea has no maximum length.

Detailed explanation-3: -The HTML <textarea> tag is used within a form to declare a textarea element-a control that allows the user to input text over multiple rows. In HTML 5, the maxlength attribute enables you to specify a maximum length for your <textarea> element. This attribute was not supported in previous versions of HTML.

Detailed explanation-4: -The cols attribute specifies the visible width of a text area. Tip: The size of a text area can also be set by the CSS height and width properties.

There is 1 question to complete.