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

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
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