...

/

Change Anything on the Page

Change Anything on the Page

Learn how to change text, HTML, or structure dynamically.

You’ve learned how to read and write to elements. Now let’s level up and change styles, layout, and even HTML itself using JavaScript.

Goals

You’ll learn to:

  • Use getElementById() and querySelector().

  • Change innerText, innerHTML, and style.

  • Update page content and appearance with JavaScript.

Press + to interact
...