I am interested to know how styles work in textarea. when i am posting a question on this site, I type my text in the text area and i am adding styles to it like making selected text bold and also displaying the same on the html page. how does this work? I mean how to do it? what is the logic behind it? Please explian in simple steps.