[Beginner] Don't use inline styles or JS!


(Nic Hubbard) #1

Quick tip, clean and simple:

 

Don't use inline javascript or CSS Styles! 

 

If you catch yourself typing onclick, stop yourself and realize what you are doing! :)


(Benjamin Pearson) #2

The official reason to stop inline Javascript: http://developer.chrome.com/extensions/contentSecurityPolicy.html (this also applies to Firefox and possibly others later).