happyworld1
IS-IT--Management
I saw on some site written;
Head section
Scripts can be placed in the head section. Usually we put all the "functions" in the head section. The reason for this is to be sure that the script is loaded before the function is called.
Body section
Execute a script that is placed in the body section. Scripts in the body section are executed when the page is loading.
how does it differ if we put the script in head or body??Pls explain
thanks
Head section
Scripts can be placed in the head section. Usually we put all the "functions" in the head section. The reason for this is to be sure that the script is loaded before the function is called.
Body section
Execute a script that is placed in the body section. Scripts in the body section are executed when the page is loading.
how does it differ if we put the script in head or body??Pls explain
thanks