Computer Science, asked by dink43, 1 year ago

which of the following syntax is correct to refer an external script called from Validation. js

Answers

Answered by kiranjeetkaur
4

<script src = "form Validation.js">

Answered by omegads03
3

JavaScripts are used by most of the web developers to make more interactive web pages. JavaScript is a separate code that is used in an HTML document. It can be internal or external. In the internal JavaScript, the code is written within the HTML document whereas in the external JavaScript the code is written in a separate file. The external JavaScript file has to be included in the HTML document to make effect of using JavaScript by using the <script> tag. The JavaScript file should be in .js extension.

The syntax for using an external script is as follows:

<script src = ”external.js”></script>

Here, src is the attribute that specifies the URL of an external script file.

Therefore, the correct answer will be  

<script src = “formValidation.js”></script>

Similar questions