answersLogoWhite

0


Best Answer

No you can't. While you can put div tags inside textarea tags, as anything in the textarea is treated only as text, the browser will ignore the div tags and they will show as text only and so have no impact. So if you do want sections for text, you would have to look at other ways of doing it, like having several text areas with different formatting.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

You can just place a div tag inside the textarea tag. It would go like <input type="textarea"><div>..</div></input>

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

You can create a div by placing the div tag in the text area. The format for the div tag is <div> and </div>.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you create div in textarea in HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Input type for textarea in HTML?

The tag to create a textarea in HTML is: &lt;textarea&gt;&lt;/textarea&gt; This tag should have an ID, so it can be identified when the form is submitted, and default text can be added inside the tag. &lt;textarea id="ourText"&gt;This text is the default&lt;/textarea&gt;


What did Robert Louis stevenson do for entertantment?

&lt;textarea class="new_title_text"&gt;What did Robert Louis Stevenson do for entertainment?&lt;/textarea&gt; &lt;div class="edit_question_buttons"&gt; &lt;a class="close_edit_question" href="javascript:void(0);"&gt;Cancel&lt;/a&gt; &lt;button class="edit_question_submit" asg-button=""&gt;Save&lt;/button&gt; &lt;/div&gt;


Div class tags for HTML?

&lt;div&gt;hjghj&lt;div&gt; is a layer


What is the correct HTML for text area?

&lt;textarea&gt; Default content if you want it. &lt;/textarea&gt; This tag should only appear inside of a &lt;form&gt; element.


What is web container?

depends what code you're talking about. if it's html, a container would be the code that contains content ("bla bla") &lt;html&gt; &lt;head&gt; &lt;title&gt; bla bla &lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;/body&gt; &lt;/html&gt; in css, it would be whatever div tag you create such as: &lt;div class="container"&gt; bla bla &lt;/div&gt;


What does div mean?

A div tag in HTML represents a division, usually with its own style, class, or alignment. For example, the HTML &lt;div align=center&gt;Text&lt;/center&gt; would align the text in the center of the page


How to display contents of txt file on webpage using javascript?

Insert this code into HTML &lt;textarea name="textfield" cols="30" rows="30"&gt;YOUR txt file &lt;/textarea&gt;


How do you post in blogger using HTML?

&lt;div id="header"&gt; &lt;div id="footer"&gt; &lt;div id="content"&gt; &lt;div id="sidebar"&gt; &lt;div class="post"&gt;


Is the 'div' tag part of HTML or XHTML?

The "div" tag is part of both languages.


In HTML how do you put the text boxes next to each other?

&lt;html&gt; &lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;/head&gt; &lt;body&gt; &lt;div position :absolute; top : 200px; left : 50px; border : solid;&gt; This is first Box &lt;/div&gt; &lt;div position :absolute; top : 200px; left : 150px; border : solid;&gt; This is Second Box &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;


What does the HTML tag do?

A Div tag can be used for formatting a block of text, images, other divs or any other element of a website, even if these elements are included within some other tag. Anything inside a particular div will follow its CSS properties unless you don't specifically change it. Its like a box in which you can add any HTML element, a webpage usually have many divs to create a the layout. The placement and size of the div can be controlled by CSS. The content of the tag &lt;div&gt; always begins with a new line as it is a block based tag. There is also line folding after it.


What does the prefix div mean?

&lt;DIV&gt; is not a prefix, it is a tag. A DIV element is a container for other HTML elements and is used for positioning and structuring content in the document