HTML - Which element to output text?
Posted
by
Oliver Weiler
on Stack Overflow
See other posts from Stack Overflow
or by Oliver Weiler
Published on 2012-03-29T17:18:22Z
Indexed on
2012/03/29
17:30 UTC
Read the original article
Hit count: 230
I'm implementing a little chat application where I receive messages from a server, which I would like to display to a user. As I'm more of a backend guy, and lacking experience in frontend development, I don't know which element would be suited best to output the text.
Two options come to my mind:
- Using a plain div
- Using a textarea (as far as I understand, this is intended to be used for input).
(Would also be nice if I could somehow fade in the text using JQuery).
© Stack Overflow or respective owner