yes 1 is the best way.
2 is the old way and some browsers may not recognize it.
3 does not specify what kind of script you are using even though you refrence the src to a javascript file.
__________________
I make no attempt at pretending like I'm a professional. I offer help with what knowledge I do have.