src – script file name and path i.e. “custom.js” with the correct path.
Path May be:
Absolute URL – Refer to another website (src=”https://developerhelps/custom.js”)
Relative URL – Refer to a file within a website (src=”/scripts/custom.js”)
Example 1 :
Example 2 :
Thanks for the reading post. I hope you like and understand the post. If you have any doubt regarding this post please comment below.