Someone once told me the only place you can have a script tag is in the HEAD section of the a html document. This is not true! You can also have a script tag anywhere in the body of the document too :-)
"The SCRIPT element places a script within a document. This element may appear any number of times in the HEAD or BODY of an HTML document."
Source: http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1
No comments:
Post a Comment