Closed twitwi closed 9 years ago
I didn't know! Thank you. I can't really find where we say that. Do you mean right at the start? It's definitively something we should mention in the lessons.
This remark came to my mind when I read this “Everything between within the body will be interpreted as JavaScript code”
Right. I'll append that.
Thanks!
The lessons (javascript part) currently mentions that
script
can be put anywhere in the body. There are two possible issues:script
comes after the corresponding html element in the source HTML fileA possible fix (if we want to avoid talking about onload [1] and other alternatives) would be to say that
script
can be anywhere in the head or body but that in this example it must be just before closing the body.[1]: e.g. http://www.w3schools.com/jsref/event_onload.asp