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).
<div><textarea>\ textbox(<input type="text"...>).Fading it is simple, if the element id is
foo: