Not entirely sure how to ask this question so sorry about that... any pointers on where to look is good.
I'm trying to have a
textarea
<p>
<br>
<strong>
<a>
What you describe is a What You See Is What You Get (WYSIWYG) editor.
Google "WYSIWYG editor library"
Examples: