Essentials
Accenture PrimermediumEssentialsWeb Technologies

Which of the below java script code helps to change the content of the paragraph tag dynamically? <p id="pid1">Aim Higher.. Sky is your limit

Answer options

A
document.getElementById("pid1").innerHTML = "Never give up!!";
B
Incorrect option A
C
Incorrect option B
D
Incorrect option C

Correct answer: document.getElementById("pid1").innerHTML = "Never give up!!";

Explanation

The correct answer is: document.getElementById("pid1").innerHTML = "Never give up!!";.

Related Accenture Essentials questions

Practice more Accenture Essentials questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.