Podcast
Questions and Answers
Which attribute is now recommended to indicate the scripting language in use?
Which attribute is now recommended to indicate the scripting language in use?
- Language
- Type (correct)
- Value
- Scripting
What is the value typically set to for the 'language' attribute in the script tag?
What is the value typically set to for the 'language' attribute in the script tag?
- javascript (correct)
- HTML
- XHTML
- text/javascript
What does the 'document.write' method do in JavaScript?
What does the 'document.write' method do in JavaScript?
- Reads a string from the HTML document
- Modifies the HTML document structure
- Executes a string as JavaScript code
- Writes a string into the HTML document (correct)
When are semicolons optional in JavaScript?
When are semicolons optional in JavaScript?
Which version of HTML has phased out the use of the 'language' attribute in the script tag?
Which version of HTML has phased out the use of the 'language' attribute in the script tag?
In JavaScript, what is the recommended value for the 'type' attribute in the script tag?
In JavaScript, what is the recommended value for the 'type' attribute in the script tag?
What does the 'document.write' method do in JavaScript?
What does the 'document.write' method do in JavaScript?
When are semicolons optional in JavaScript?
When are semicolons optional in JavaScript?
What does the 'language' attribute in the script tag specify?
What does the 'language' attribute in the script tag specify?
Which versions of HTML have phased out the use of the 'language' attribute in the script tag?
Which versions of HTML have phased out the use of the 'language' attribute in the script tag?
Flashcards are hidden until you start studying