exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 90 discussion

Actual exam question from Microsoft's 70-480
Question #: 90
Topic #: 4
[All 70-480 Questions]

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("All rights reserved");
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
https://www.codecademy.com/en/forum_questions/557ea03cd3292f72d10006bf

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mogec39
Highly Voted 5 years, 9 months ago
correct answer D
upvoted 23 times
...
JMz123
Highly Voted 5 years, 8 months ago
Correct answer D. AB would need a getElementById; The "#" refers to an id; the . to a class.
upvoted 6 times
...
AT_TW
Most Recent 5 years, 5 months ago
If use jQuery , correct answer D.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...