<script type="text/javascript" src="http://www.domain.com/assets/js/something.js"></script>
That is the code for “calling” your JavaScript file named something.js in a folder called javascript.
After you have saved your html file, go to that web page on your web site. The code will have been moved out of your html page and your html pages won’t suffer from what I call “code bloat” which ultimately hurts your search engine optimization. The more you can focus the content in your html files the better.
0 comments:
Post a Comment