Qus : Which of the following properties is used to change the text inside an HTML element?
QusHTML तत्व के अंदर टेक्स्ट को बदलने के लिए निम्नलिखित में से किस गुण का उपयोग किया जाता है?
A. innerHTML B. innerText
C. textContent D. All of the above
Solution
D. All of the above
Explanation
innerHTML changes the HTML content, including tags.
innerText changes the visible text content, excluding hidden elements.
textContent changes the text inside the element and includes all text, regardless of visibility.