10 Questions
Which attribute is now recommended to indicate the scripting language in use?
Type
What is the value typically set to for the 'language' attribute in the script tag?
javascript
What does the 'document.write' method do in JavaScript?
Writes a string into the HTML document
When are semicolons optional in JavaScript?
When statements are on separate lines
Which version of HTML has phased out the use of the 'language' attribute in the script tag?
HTML 5
In JavaScript, what is the recommended value for the 'type' attribute in the script tag?
text/javascript
What does the 'document.write' method do in JavaScript?
Writes a string into the HTML document
When are semicolons optional in JavaScript?
When each statement is placed on a separate line
What does the 'language' attribute in the script tag specify?
The scripting language in use (e.g., javascript)
Which versions of HTML have phased out the use of the 'language' attribute in the script tag?
Recent versions of HTML and XHTML
Test your knowledge of JavaScript scripting language and attributes for the
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free