6 points · by smashing_mag · 15y ago · 6 comments
Script tags just work (no need for type="text/javascript": <script></script>
CSS
Understand how to do general vs specific border/margin/etc assignments and how they cascade. Useful for generic
classes:
.class1{ border:1px solid #000; }
.sub_class1{ border-bottom:2px solid #cc0000; }
JS
0|3.14 === 3, vs Math.floor(3.14) === 3