I'd just take XML and use that. You can have a look at HTML to see how formatting is done. The benefit is that you can use an existing XML parser to save time.