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.