JavaScript – Format HTML with JavaScript code

Have you ever tought of formatting HTML with JS in stead of CSS? Why have you tought about it?

Anyway, if playing with formats is your thing, here is a small example how to achieve the following picture with JS formatting over the HTML:

The code:


Enjoy it!

Tagged with: ,