1.
What is a global variable in HTML?
2.
Which HTML element is commonly used to define global variables in HTML?
3.
What is the purpose of using global variables in HTML?
4.
Which attribute is used to declare a global variable inside a <script> element in HTML?
5.
How can you access a global variable defined in one <script> element from another <script> element in HTML?
6.
What is the output of the following HTML code snippet? <br> <br> <script> <br>var globalVar = 'Hello'; <br>console.log(globalVar); <br> </script>
7.
Which statement accurately describes the scope of global variables declared in HTML?
8.
What is the purpose of using the defer attribute in a <script> element in HTML?
9.
Which of the following best describes the relationship between global variables in HTML and CSS?
10.
What is the purpose of using global variables in CSS?