Separate attributes for CCS and JavaScript
October 10, 2014
Use class attribute for CSS and id attribute for JavaScript.
html
<div class="container" id="container"></div>
css
.container { background: '#aaa' }
js
var container = document.getElementById('container');