Please no. Mixing a markup designed for creating a visual and a scripting language designed to control said visual is painful to maintain and extend. There are too many &quot;gotchas&quot; with the markup structure and CSS itself. Worse yet if something happens with the JavaScript itself and it can&#x27;t load or loads slowly (because, don&#x27;t forget, you can make those scripts load asynchronously) what does all that mark-up do? It&#x27;s going to have a very, very different behavior.