- Understanding the HTML Script Tag in JavaScript
- Script Tag Quiz 6 questions
- Comprehensive Guide to External JavaScript in HTML
- External JavaScript Quiz 6 questions
- Understanding the Element and JavaScript in XHTML Files
- XHTML Files Quiz 6 questions
- Manipulating HTML and Outputs with JavaScript
- JavaScript Comments
- Output from a JavaScript Program
- Manipulating HTML and Outputs Quiz 5 questions
- Example of a Simple JavaScript Program
- Simple JavaScript Quiz 6 questions
Quiz Question 1 of 6
Given the XHTML requirement for the type attribute in external JavaScript, which scenario best illustrates why this attribute is necessary?
Choose the correct answer below:
-
A
To specify that the linked file is JavaScript so it can be correctly interpreted by the XHTML parser.
-
B
To ensure that the browser knows the JavaScript version being used.
-
C
To provide a fallback for older browsers that do not recognize JavaScript.
-
D
To differentiate between different types of external scripts, such as CSS or XML.