answersLogoWhite

0

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

9y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
More answers

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

User Avatar

Wiki User

10y ago
User Avatar

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

User Avatar

Wiki User

10y ago
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