1.
What is the correct HTML tag to create a multi-line text input with the default value "Type here"?
<form action="#">
________
</form>
<text name="comment" rows="4" cols="50">Type here</text>
<p type="textarea" name="comment">Type here</p>
<div type="text" name="comment">Type here</div>
<textarea>Type here</textarea>
Correct: D
The correct HTML tag to create a multi-line text input is <textarea>. This tag allows users to enter multiple lines of text. The <div> element is used to create a block-level element, such as a paragraph or a section. The <div> element cannot be used to create a text input field. The <p> element is used to create a paragraph. The <p> element cannot be used to create a text input field. The <text> element is not a valid HTML element.
1 / 25