Web Technology
Accenture PrimereasyWeb TechnologyJavascript

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
True
B
False

Correct answer: True

Explanation

document.getElementById('pid1').innerHTML = 'new content' dynamically changes the HTML content inside the paragraph with id='pid1'. This is the standard DOM manipulation approach.

Related Accenture Web Technology questions

Practice more Accenture Web Technology questions

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