- 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
Which of the following best explains why XHTML requires a stricter syntax for including JavaScript compared to HTML?
Choose the correct answer below:
-
A
XHTML is designed to be backward compatible with older HTML versions.
-
B
XHTML’s XML-based syntax requires additional CDATA markers to prevent parsing errors.
-
C
XHTML scripts need to be encoded in a different way to be executed by the browser.
-
D
XHTML does not support JavaScript unless specified with a
<script>
tag.