I don't know a whole lot of HTML off of the top of my head, but theres a really good site with a ton of HTML examples and stuff. They give you the code, and you can edit it right there and preview what it looks like. It's really useful, and great to mess around with and learn. I think I remember seeing something like what you're describing.
http://www.w3schools.com/html/html_examples.asp