for that, you need to create menus that hold tags and put them when clicked / selected.
also, you must have fundamental knowledge of HTML Tags.
e.g., you can put the following code when some user clicks for "Insert Horizontal Rule"
vbcrlf & "<HR />" & vbcrlf
This code is for VB Implementation.