Design an efficient data structure to store a paragraph which contains words of various styles and various fonts.
example :- Jack and Jill
The word Jack is in bold format, and the word Jill is in Italic format. The font sizes can also be different.
Follow Up: How is it implemented in a web application (efficient way to store and render in a html page)