I am not sure whether this question is a good fit for this site, but if it is not, please let me know and I will take it down.
If it is off-topic, some general info on where I can look for these answers would be greatly appreciated.
I am wondering how the data that determines how text is to be formatted is stored. For example, if I format some text in Bold and Italic in Microsoft Word, I can paste it into google docs and the formatting will stay the same, but If I paste it in here, it will loose its formatting. I am wondering if this is because google docs is aware of the formatting used by Word and it converts it, or if they use the same type of formatting and there is some set of standards.