Best of DOMDecember 2023

  1. 1
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Manipulate the DOM in JavaScript – Most Commonly Used Techniques

    Learn about common techniques for manipulating the DOM in JavaScript, such as changing the content of an element, manipulating the class attribute, and setting CSS styles.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    innerHTML vs innerText vs textContent – What's the Difference?

    Learn about the differences between innerHTML, innerText, and textContent properties in HTML and how they handle HTML markup and content. Be cautious when using innerHTML due to security risks. innerText focuses on rendered text content, while textContent ignores HTML tags and includes hidden content. Update content using all three properties.