🎴 Flashcard Mode
ASP.NET and JavaScript Fundamentals
Card1 / 20
Mastered0
Review0
QuestionClick to flip
What is the correct syntax for referring to an external script called "xxx.js"?
AnswerClick to flip back
A
<script src="xxx.js">
💡 Explanation:
The HTML <script> tag uses the src (source) attribute to link external JavaScript files like "xxx.js". Using href is incorrect because it is reserved for stylesheets and links, while name and id are used for identifying elements, not loading external files.