In: Computer Science
1. A
2. B
3. C
9. What is the correct JavaScript syntax to change the content
of the HTML element below?
<p id="demo">This is a
demonstration.</p>
Top of Form
10. 4. What is the correct syntax for referring to an external script called "xxx.js"?
The following three questions will be in relation to the HTML code shown below and CSS:
Which of the following is NOT a container tag?
Answer:- d. <img>
Explanation:-
<img> tag is not a container because of the following reasons:
What is the correct order for table tags?
Answer:- d. <table><tr><td></td></tr></table>
Explanation:-
For the list shown below which of the following is the proper HTML5 code for the list.
1. A
2. B
3. C
Answer:- d. <ol> <li> A </li> <li> B </li> <li> C </li> </ol>
Explanation:-
Which method will send form data via the URL?
Answer:- a. get
Explanation:-
METHOD="GET" is used to send data via the URL.
Which one of the following defines a CSS class selector, RED:
Answer:- c .RED {…}
Explanation:-
CSS supports different types of selectors. The class selector consists of the dot(.) followed by name.
The term ___________ refers to the ways in which a web page can be made more usable by people with visual disabilities.
Answer:- c. accessibility
Explanation:-
The accessibility provides various guides especially for the disabled ones.
9. What is the correct JavaScript syntax to change the content
of the HTML element below?
<p id="demo">This is a
demonstration.</p>
Answer:- a. document.getElementById("demo").innerHTML = "Hello World!";
10. 4. What is the correct syntax for referring to an external script called "xxx.js"?
Answer:- b. <script src="xxx.js">
Explanation:- The external java-script is referred in the current page using the "src" attribute.
The ______ element is used to define column headings in a table.
Answer:- c. th
Explanation:-
<th> </th> tag is used to define the column headings in a table where the content appear in bold letters.