What\'s the difference between HEAD tags and BODY tags?
most HTML books only \'briefly\' mentions and
tags...but they
Generally javascript code will function in the head before code in the body. The head section is usually used to contain information about the page that you dont neccessarily see like the meta keywords meta description or title of a page. You would also link to any external files like .css .js files in the head section as they need to load before the page is displayed.
Anything in the body section is what you would expect to be see on screen.
The Head tag is typically used to import other files and define attributes of your page that are not displayed, like meta data. So you could place CSS/Javascript files that you webpage requires in your Head section and they would load before the your page displays.
The body Tag is where you you place the Parts of your website that you want displaed, like p tags, divs, etc.