MCQOPTIONS
Saved Bookmarks
| 1. |
The following is a web-page: <html> <head> <title>JavaScript</title> </head> <body bgcolor=""#0000ff""> <script language=""JavaScript""> <!-- document.write(""<h1> hello world </h1>""); //--> </script> </body> </html> When the above web page is loaded into a browser, what will happen? |
| A. | The body of the web page will not contain any text |
| B. | The body of the web page will contain the text “hello world” as an H1 heading |
| C. | The background color of the web page will be green |
| D. | document.write("<h1> hello world </h1 >”); is a comment. |
| Answer» B. The body of the web page will contain the text “hello world” as an H1 heading | |