When does JavaScript code appear inline within an HTML file?

A Between or Outside the “script” tag
B Between the header tag
C Outside the “script” tag
D Between the “script” tag

Correct Answer: Between the “script” tag

JavaScript code can appear inline within an HTML file between the “script” tags. Javascript can also be included from an external file specified by the src attribute of a “script” tag.

Related Questions

Which of the following is a way of embedding Client-side JavaScript code within HTML documents?
Client-side JavaScript code is embedded within HTML documents in
Say I want to change the extension of a PHP file, which of the following statements should I edit to change from .php to .html in the httpd.conf file?

Next steps