You are developing a web application in HTML.
You have the following HTML code.
You need to ensure that the div footer contains the text "All rights reserved".
Which line of code should you use?
A. document("footer") = "All rights reserved";
B. document("footer").innerHTML = "All rights reserved";
C. $(".footer").value = "All rights reserved";
D. $("#footer").html(‘AII rights reserved");
There are so many mystakes here, I really hope the actual exam has none of them.
Answer B is wrong.
It’s answer D:
$(“#footer”).html(‘AII rights reserved”);